Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
CivManage
Commits
65bd0f3f
Commit
65bd0f3f
authored
Dec 04, 2020
by
张烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 登录页面调接口失败
parent
f6d0675b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
defaultConfig.js
src/utils/request/defaultConfig.js
+12
-10
No files found.
src/utils/request/defaultConfig.js
View file @
65bd0f3f
...
...
@@ -22,16 +22,18 @@ const bizRedirectHandler = response => {
确定
<
/Button
>
);
notification
.
warning
({
key
,
title
:
'提示'
,
message
:
'授权失败,即将跳转到登录页'
,
duration
:
4
,
btn
,
});
setTimeout
(()
=>
{
window
.
location
.
href
=
`/
${
BASENAME
}
/user/login`
;
},
4000
);
if
(
!
/
\/
user
\/
login$/
.
test
(
window
.
location
.
pathname
))
{
notification
.
warning
({
key
,
title
:
'提示'
,
message
:
'授权失败,即将跳转到登录页'
,
duration
:
4
,
btn
,
});
setTimeout
(()
=>
{
window
.
location
.
href
=
`/
${
BASENAME
}
/user/login`
;
},
4000
);
}
}
};
...
...
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