删除项目列表模块(重复内容)
This commit is contained in:
@@ -46,7 +46,7 @@ instance.interceptors.response.use(
|
||||
}
|
||||
router.push("/login");
|
||||
};
|
||||
// 如果当前项目不存在或已失效,清理项目并跳到项目列表
|
||||
// 如果当前项目不存在或已失效,清理项目并跳到工作台
|
||||
if (status === 404 && typeof data?.message === "string" && data.message.toLowerCase().includes("study")) {
|
||||
try {
|
||||
const studyStore = useStudyStore();
|
||||
@@ -54,7 +54,7 @@ instance.interceptors.response.use(
|
||||
} catch {
|
||||
/* ignore */
|
||||
}
|
||||
router.push("/studies");
|
||||
router.push("/workbench");
|
||||
}
|
||||
if (status === 401) {
|
||||
handleUnauthorized();
|
||||
|
||||
Reference in New Issue
Block a user