fix
This commit is contained in:
@@ -80,7 +80,7 @@ axios.interceptors.response.use((res) =>{
|
||||
}
|
||||
|
||||
}, function(error) {
|
||||
if(error?.response?.status === 401){
|
||||
if(error?.response?.status === 401&&router.currentRoute._value.name != 'setIdentification'){//如果是记录浏览器页面就不跳转login
|
||||
router.replace('/login')
|
||||
return Promise.reject()
|
||||
}
|
||||
@@ -89,7 +89,6 @@ axios.interceptors.response.use((res) =>{
|
||||
return Promise.reject(data_new);
|
||||
|
||||
});
|
||||
|
||||
export const Https = {
|
||||
httpUrls: {
|
||||
interfaceUrl: '',
|
||||
|
||||
Reference in New Issue
Block a user