Commit 6b600ac0 by 芋道源码 Committed by Gitee

!107 修复token过期时路由跳转问题

Merge pull request !107 from puhui999/dev2
parents 276e82c5 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'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment