移除示例项目初始化并修复前后端稳定性问题

This commit is contained in:
Cheng Zhou
2026-03-30 15:35:22 +08:00
parent a67991740e
commit 8c5d03f1cb
24 changed files with 581 additions and 102 deletions
+5 -1
View File
@@ -58,7 +58,7 @@
</el-table>
</div>
</div>
<ProjectForm v-model:visible="formVisible" :project="editingProject" @saved="loadProjects" />
<ProjectForm v-if="formVisible" v-model:visible="formVisible" :project="editingProject" @saved="loadProjects" />
</div>
</template>
@@ -139,7 +139,11 @@ const handleDelete = async (study: Study) => {
return;
}
const isDeletingCurrentStudy = studyStore.currentStudy?.id === study.id;
await deleteStudy(study.id);
if (isDeletingCurrentStudy) {
await studyStore.rehydrateStudyForLastUser({ preferActive: true });
}
ElMessage.success("项目已删除");
await loadProjects();
} catch (err: any) {