1
@@ -63,8 +63,11 @@ async response => {
if (res.code === 401 || res.code === 403) {
// 清理缓存 跳到登录页面
await store.dispatch('FedLogOut')
- router.push('/login')
- location.reload()
+ await router.push('/login')
+ setTimeout(()=>{
+ location.reload()
+ },500)
+
// location = window.location.origin;
// MessageBox.confirm('登录过期请重新登录', '确定登出', {