flat:赞存
This commit is contained in:
@@ -94,7 +94,9 @@ service.interceptors.response.use(
|
||||
//如果是401则跳转到登录页面
|
||||
if (status === 401) {
|
||||
store.dispatch("FedLogOut").then(() => {
|
||||
// window.location.href = process.env.VUE_APP_LOGIN_NEXT;
|
||||
if (process.env.NODE_ENV !== "development") {
|
||||
window.location.href = process.env.VUE_APP_LOGIN_NEXT;
|
||||
}
|
||||
});
|
||||
// store.dispatch('FedLogOut').then(() => router.push({path: '/login'}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user