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
Unverified
Commit
6b600ac0
authored
Apr 09, 2023
by
芋道源码
Committed by
Gitee
Apr 09, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!107 修复token过期时路由跳转问题
Merge pull request !107 from puhui999/dev2
parents
276e82c5
46bf186e
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 @
6b600ac0
...
...
@@ -230,7 +230,8 @@ const handleAuthorized = () => {
wsCache
.
clear
()
removeToken
()
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'
))
...
...
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