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

Merge pull request !107 from puhui999/dev2
This commit is contained in:
芋道源码 authored and Gitee committed 2023-04-09 01:18:48 +00:00
commit 6b600ac04f
1 file changed
+2 -1
+2 -1
View File
@@ -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'))