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
e73a237c
Commit
e73a237c
authored
Jul 19, 2024
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 和达单页面免登网关关闭情况
parent
85cbe4da
Pipeline
#91001
passed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
login.js
src/pages/user/login/login.js
+14
-2
noSecret.js
src/pages/user/login/noSecret.js
+1
-0
No files found.
src/pages/user/login/login.js
View file @
e73a237c
...
@@ -40,8 +40,13 @@ class Login {
...
@@ -40,8 +40,13 @@ class Login {
return
a
.
split
(
'='
)[
0
]
==
'uniwater_utoken'
;
return
a
.
split
(
'='
)[
0
]
==
'uniwater_utoken'
;
});
});
this
.
uniwater_utoken
=
paramsFind
?.
split
(
'='
)[
1
]
??
''
;
this
.
uniwater_utoken
=
paramsFind
?.
split
(
'='
)[
1
]
??
''
;
// 单页面免登重定向地址
if
(
this
.
uniwater_utoken
)
{
const
redirect
=
params
&&
params
.
find
(
function
(
a
)
{
return
a
.
split
(
'='
)[
0
]
===
'redirect'
;
});
if
(
this
.
uniwater_utoken
&&
!
redirect
)
{
this
.
getTokenForThird
();
this
.
getTokenForThird
();
}
}
...
@@ -56,6 +61,13 @@ class Login {
...
@@ -56,6 +61,13 @@ class Login {
}
}
}
}
// 第三方单页面免登
getTokenThirdLogin
(
tk
)
{
const
self
=
this
;
self
.
globalConfig
.
token
=
tk
;
self
.
updateConfig
&&
self
.
updateConfig
(
self
.
globalConfig
);
}
// 单点登录接口_xule_20231214
// 单点登录接口_xule_20231214
getTokenForThird
()
{
getTokenForThird
()
{
const
self
=
this
;
const
self
=
this
;
...
...
src/pages/user/login/noSecret.js
View file @
e73a237c
...
@@ -85,6 +85,7 @@ const Login = forwardRef((props, _ref) => {
...
@@ -85,6 +85,7 @@ const Login = forwardRef((props, _ref) => {
action
.
transformLoginHander
(
res
,
false
);
action
.
transformLoginHander
(
res
,
false
);
});
});
}
else
{
}
else
{
if
(
authData
)
action
.
getTokenThirdLogin
(
authData
);
action
.
init
(
site
);
action
.
init
(
site
);
}
}
}
}
...
...
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