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

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
+4 -1
View File
@@ -15,12 +15,15 @@ import { useStudyStore } from "./store/study";
const app = createApp(App);
const pinia = createPinia();
app.use(pinia);
app.use(router);
dayjs.locale("zh-cn");
app.use(ElementPlus, { locale: zhCn });
// 初始化项目上下文
const studyStore = useStudyStore();
studyStore.loadCurrentStudy();
await studyStore.rehydrateStudyForLastUser();
app.use(router);
await router.isReady();
app.mount("#app");