fix
This commit is contained in:
@@ -88,6 +88,7 @@ axios.interceptors.response.use((res) =>{
|
||||
}
|
||||
}, function(error) {
|
||||
if(error?.response?.status === 401 && router.currentRoute._value.name != 'setIdentification'){//如果是记录浏览器页面就不跳转login
|
||||
clonAllCookie()
|
||||
if(!isLoginTime){
|
||||
isLoginTime = true
|
||||
let isSystemUserRouteList = ['/Square']//如果是这两个页面就无需跳转未登录页
|
||||
@@ -102,7 +103,6 @@ axios.interceptors.response.use((res) =>{
|
||||
router.replace('/')
|
||||
}
|
||||
message.warning('Please login and try again~')
|
||||
clonAllCookie()
|
||||
store.commit('clearSystemUser')
|
||||
setTimeout(()=>[
|
||||
isLoginTime = false
|
||||
|
||||
Reference in New Issue
Block a user