中文:收口权限与中心/立项配置改造
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user