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
6b563324
Commit
6b563324
authored
Nov 15, 2022
by
杨思琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 企业微信跳转登录重定向修改
parent
0de1d3bc
Pipeline
#63838
waiting for manual action with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
login.js
src/pages/user/login/login.js
+1
-1
WeComLogin.js
src/pages/user/login/template/cloud/WeComLogin.js
+2
-2
No files found.
src/pages/user/login/login.js
View file @
6b563324
...
...
@@ -489,7 +489,7 @@ class Login {
id
:
'wxlogin_container'
,
appid
:
'wxec56ca668e7f9155'
,
agentid
:
'1000083'
,
redirect_uri
:
encodeURIComponent
(
window
.
location
.
href
.
replace
(
'
#/
'
,
''
)),
redirect_uri
:
encodeURIComponent
(
window
.
location
.
href
.
replace
(
'
user/login
'
,
''
)),
href
:
'https://mis.panda-water.cn/web4/styles/wx.css'
,
});
}
...
...
src/pages/user/login/template/cloud/WeComLogin.js
View file @
6b563324
...
...
@@ -10,7 +10,7 @@ const useWeCom = props => {
id
:
props
.
container
||
'wxlogin_container'
,
appid
:
props
.
appid
||
WECOM_APPID
,
agentid
:
props
.
agentid
||
AGENTID_CLOUD
,
redirect_uri
:
props
.
redirect_uri
.
replace
(
'#/'
,
''
)
||
encodeURIComponent
(
window
.
location
.
href
.
replace
(
'#/
'
,
''
)),
redirect_uri
:
props
.
redirect_uri
||
encodeURIComponent
(
window
.
location
.
href
.
replace
(
'user/login
'
,
''
)),
href
:
props
.
href
||
'https://panda-water.cn/web4/styles/wx.css'
,
self_redirect
:
false
,
state
:
props
.
state
||
'STATE'
,
...
...
@@ -42,7 +42,7 @@ const useIOTQRCode = () => {
container
:
'wxlogin_container'
,
appid
:
WECOM_APPID
,
agentid
:
AGENTID_CLOUD
,
redirect_uri
:
encodeURIComponent
(
window
.
location
.
href
.
replace
(
'
#/
'
,
''
)),
// window.location.href
redirect_uri
:
encodeURIComponent
(
window
.
location
.
href
.
replace
(
'
user/login
'
,
''
)),
// window.location.href
href
:
'https://panda-water.cn/web4/styles/wecom.css'
,
state
:
rstate
,
},
...
...
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