Step F2:项目列表 & 当前项目上下文
This commit is contained in:
@@ -5,10 +5,16 @@ import "element-plus/dist/index.css";
|
||||
|
||||
import App from "./App.vue";
|
||||
import router from "./router";
|
||||
import { useStudyStore } from "./store/study";
|
||||
|
||||
const app = createApp(App);
|
||||
app.use(createPinia());
|
||||
const pinia = createPinia();
|
||||
app.use(pinia);
|
||||
app.use(router);
|
||||
app.use(ElementPlus);
|
||||
|
||||
// 初始化项目上下文
|
||||
const studyStore = useStudyStore();
|
||||
studyStore.loadCurrentStudy();
|
||||
|
||||
app.mount("#app");
|
||||
|
||||
Reference in New Issue
Block a user