Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
8a668da7
Commit
8a668da7
authored
1 year ago
by
杨思琦
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev'
# Conflicts: # src/pages/user/login/template/project/jiangxiNew/index.less
parents
1729683c
46940680
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
login.js
src/pages/user/login/login.js
+10
-13
index.less
src/pages/user/login/template/project/jiangxiNew/index.less
+0
-1
No files found.
src/pages/user/login/login.js
View file @
8a668da7
...
...
@@ -74,13 +74,8 @@ class Login {
gztransformLoginHander
(
response
,
isRememberPWD
,
pwd
)
{
const
self
=
this
;
const
token
=
response
&&
(
response
.
token
?
response
.
token
:
response
.
access_token
!==
null
&&
response
.
user_token
!==
null
?
response
.
user_token
:
''
);
// eslint-disable-next-line prettier/prettier
const
token
=
response
&&
(
response
.
token
?
response
.
token
:
response
.
access_token
!==
null
&&
response
.
user_token
!==
null
?
response
.
user_token
:
''
);
if
(
token
)
{
const
exp
=
86400000
;
self
.
globalConfig
.
token
=
token
;
...
...
@@ -247,7 +242,7 @@ class Login {
?
this
.
globalConfig
.
userInfo
.
fullName
:
''
,
})
.
catch
(
error
=>
{
});
.
catch
(
error
=>
{});
}
if
(
window
.
location
.
host
===
'panda-water.com'
)
{
...
...
@@ -261,7 +256,7 @@ class Login {
?
this
.
globalConfig
.
userInfo
.
fullName
:
''
,
})
.
catch
(
error
=>
{
});
.
catch
(
error
=>
{});
}
}
...
...
@@ -274,13 +269,14 @@ class Login {
}
});
}
// eslint-disable-next-line prettier/prettier
if
(
!
flag
&&
this
.
isSignIn
&&
this
.
globalConfig
.
userInfo
.
Industries
.
length
&&
this
.
globalConfig
.
userInfo
.
Industries
.
length
>
1
)
{
this
.
createContext
(
this
);
this
.
updateConfig
&&
this
.
updateConfig
(
this
.
globalConfig
);
this
.
history
.
push
(
'/industry'
);
return
false
;
}
//跳转到集成登录引导页_xule_2023-08-28
//
跳转到集成登录引导页_xule_2023-08-28
if
(
!
flag
&&
this
.
isSignIn
&&
this
.
globalConfig
.
isIntegration
>=
1
)
{
this
.
history
.
push
(
'/industry'
);
return
false
;
...
...
@@ -390,8 +386,9 @@ class Login {
mqttConfig
.
mqtt_mess
.
TcpPort
=
DEFAULT_TCP_PORT
;
mqttConfig
.
mqtt_IsSSL
=
`
${
mqttConfig
.
mqtt_mess
.
TcpIP
}
:
${
mqttConfig
.
mqtt_mess
.
TcpPort
}
`
;
}
mqttConfig
.
mqtt_iotIP
=
`
${
mqttConfig
.
mqtt_mess
.
TcpIP
}
:
${
mqttConfig
.
mqtt_mess
.
TcpPort
?
mqttConfig
.
mqtt_mess
.
TcpPort
:
'443'
}
`
;
mqttConfig
.
mqtt_iotIP
=
`
${
mqttConfig
.
mqtt_mess
.
TcpIP
}
:
${
mqttConfig
.
mqtt_mess
.
TcpPort
?
mqttConfig
.
mqtt_mess
.
TcpPort
:
'443'
}
`
;
self
.
globalConfig
=
Object
.
assign
(
self
.
globalConfig
,
{
...
mqttConfig
,
...
...
@@ -745,7 +742,7 @@ class Login {
height
:
'400'
,
});
const
handleMessage
=
function
(
event
)
{
const
handleMessage
=
function
(
event
)
{
const
{
origin
}
=
event
;
// Logger.log('origin', event.origin);
if
(
origin
===
'https://login.dingtalk.com'
)
{
...
...
This diff is collapsed.
Click to expand it.
src/pages/user/login/template/project/jiangxiNew/index.less
View file @
8a668da7
.lvchenglogin {
width: 100%;
height: 100%;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment