This commit is contained in:
chy
2025-06-26 14:30:57 +08:00
parent db5d707e54
commit 310308c7d9
25 changed files with 3194 additions and 74 deletions

View File

@ -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;
},