This commit is contained in:
caolc
2023-04-20 09:27:36 +08:00
parent 8982c3b03c
commit 565e9c7070
3 changed files with 70 additions and 4 deletions

View File

@@ -163,9 +163,11 @@ service.interceptors.response.use(
type: "error",
duration: 5 * 1000
});
setTimeout(() => {
store.dispatch("user/resetToken").then(() => {
location.reload();
});
}, 2000);
// 排除自定义的车队返回结果状态码
} else if (
res.code !== 20000 &&