Pre Merge pull request !107 from puhui999/dev2

pull/107/MERGE
puhui999 2023-04-08 16:40:49 +00:00 committed by Gitee
commit 001dbb2a97
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 1 deletions

View File

@ -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'))