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
5b2c49f6
Commit
5b2c49f6
authored
Nov 01, 2023
by
徐乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改集成登录单站点问题
parent
d028e0ad
Pipeline
#81114
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
proxy.js
config/proxy.js
+1
-1
login.js
src/pages/user/login/login.js
+8
-9
No files found.
config/proxy.js
View file @
5b2c49f6
/* eslint-disable */
// const proxyURL = process.env.NODE_ENV !== 'production' ? 'http://192.168.10.150:8777' : window.location.origin;
// const proxyURL = 'https://work.panda-water.cn';
const
proxyURL
=
'http://
120.194.86.66:8096
/'
;
const
proxyURL
=
'http://
localhost:8085
/'
;
// const proxyURL = 'https://panda-water.cn'
//const proxyURL = 'http://192.168.12.189:8816/'
module
.
exports
=
{
...
...
src/pages/user/login/login.js
View file @
5b2c49f6
...
...
@@ -33,6 +33,7 @@ class Login {
this
.
createContext
=
props
.
createContext
;
this
.
history
=
props
.
history
;
this
.
callback
=
callback
;
this
.
integratedNum
=
0
;
this
.
hasTry
=
false
;
this
.
logout
=
props
.
logout
;
if
(
isInit
)
{
...
...
@@ -222,7 +223,7 @@ class Login {
?
this
.
globalConfig
.
userInfo
.
fullName
:
''
,
})
.
catch
(
error
=>
{});
.
catch
(
error
=>
{
});
}
if
(
window
.
location
.
host
===
'panda-water.com'
)
{
...
...
@@ -236,7 +237,7 @@ class Login {
?
this
.
globalConfig
.
userInfo
.
fullName
:
''
,
})
.
catch
(
error
=>
{});
.
catch
(
error
=>
{
});
}
}
...
...
@@ -257,7 +258,7 @@ class Login {
return
false
;
}
// 跳转到集成登录引导页_xule_2023-08-28
if
(
!
flag
&&
this
.
isSignIn
&&
this
.
globalConfig
.
isIntegration
>=
1
)
{
if
(
!
flag
&&
this
.
isSignIn
&&
this
.
globalConfig
.
isIntegration
>=
1
&&
this
.
integratedNum
>=
2
)
{
this
.
history
.
push
(
'/industry'
);
return
false
;
}
...
...
@@ -373,9 +374,8 @@ 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
,
});
...
...
@@ -752,7 +752,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'
)
{
...
...
@@ -869,7 +869,6 @@ class Login {
const
tk
=
response
.
token
;
self
.
globalConfig
.
token
=
tk
;
// eslint-disable-next-line no-undef,no-debugger
getUserInfo
(
{
token
:
tk
,
...
...
@@ -999,7 +998,7 @@ class Login {
try
{
if
(
response
&&
response
.
code
===
0
)
{
self
.
globalConfig
.
userInfo
=
window
?.
globalConfig
?.
transformUserInfo
?.(
response
.
data
)
??
{};
self
.
integratedNum
=
response
.
data
?.
integrated
;
const
date
=
new
Date
();
date
.
setTime
(
date
.
getTime
()
+
24
*
60
*
60
*
1000
);
// date = date.toGMTString();
...
...
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