最新
This commit is contained in:
@ -54,9 +54,14 @@ service.interceptors.response.use(
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
if (res.code == 7) {
|
||||
if (res.code === 7) {
|
||||
window.location = "/";
|
||||
}
|
||||
if (res.code === 8) {
|
||||
store.dispatch("user/resetToken").then(() => {
|
||||
window.location = "/login";
|
||||
});
|
||||
}
|
||||
}
|
||||
return res;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user