中文:收口权限与中心/立项配置改造

This commit is contained in:
Cheng Zhou
2026-05-12 10:16:52 +08:00
parent 6e90370a5f
commit 77e842637d
67 changed files with 706 additions and 669 deletions
+4 -1
View File
@@ -10,6 +10,7 @@ import "./styles/unified-page.css";
import App from "./App.vue";
import router from "./router";
import { getToken } from "./utils/auth";
import { useStudyStore } from "./store/study";
const app = createApp(App);
@@ -21,7 +22,9 @@ app.use(ElementPlus, { locale: zhCn });
// 初始化项目上下文
const studyStore = useStudyStore();
studyStore.loadCurrentStudy();
await studyStore.rehydrateStudyForLastUser();
if (getToken()) {
await studyStore.rehydrateStudyForLastUser();
}
app.use(router);
await router.isReady();