删除项目列表模块(重复内容)

This commit is contained in:
Cheng Zhou
2025-12-23 21:06:53 +08:00
parent 712cef8298
commit 7694311882
11 changed files with 102 additions and 106 deletions
+2 -2
View File
@@ -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();