fix: 修复登录超时后无限重定向问题
This commit is contained in:
@@ -45,6 +45,7 @@ axios.interceptors.response.use(
|
||||
window.location.href = '/'
|
||||
} else if (response.status === 200) {
|
||||
if (accountErrorCode.indexOf(response.data.code) !== -1) {
|
||||
sessionStorage.removeItem(storageKey.token)
|
||||
window.location.href = '/'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user