Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
46bf186e
authored
Apr 09, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复token过期时路由跳转问题
parent
276e82c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/config/axios/service.ts
+2
-1
No files found.
src/config/axios/service.ts
View file @
46bf186e
...
@@ -230,7 +230,8 @@ const handleAuthorized = () => {
...
@@ -230,7 +230,8 @@ const handleAuthorized = () => {
wsCache
.
clear
()
wsCache
.
clear
()
removeToken
()
removeToken
()
isRelogin
.
show
=
false
isRelogin
.
show
=
false
window
.
location
.
href
=
'/login?redirect=/sso?'
+
window
.
location
.
href
.
split
(
'?'
)[
1
]
// 干掉token后再走一次路由让它过router.beforeEach的校验
window
.
location
.
href
=
window
.
location
.
href
})
})
}
}
return
Promise
.
reject
(
t
(
'sys.api.timeoutMessage'
))
return
Promise
.
reject
(
t
(
'sys.api.timeoutMessage'
))
...
...
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