flat: 1
This commit is contained in:
@@ -61,10 +61,10 @@ axios.interceptors.response.use(
|
||||
if (statusWhiteList.includes(status)) return Promise.reject(res);
|
||||
//如果是401则跳转到登录页面
|
||||
if (status === 401) {
|
||||
store.dispatch('FedLogOut').then(() => {
|
||||
window.location.href = process.env.VUE_APP_LOGIN_NEXT
|
||||
});
|
||||
// store.dispatch('FedLogOut').then(() => router.push({path: '/login'}));
|
||||
// store.dispatch('FedLogOut').then(() => {
|
||||
// window.location.href = process.env.VUE_APP_LOGIN_NEXT
|
||||
// });
|
||||
store.dispatch('FedLogOut').then(() => router.push({path: '/login'}));
|
||||
}
|
||||
// 如果请求为500统一处理
|
||||
const err = new Error(message)
|
||||
|
||||
Reference in New Issue
Block a user