22 lines
513 B
TypeScript
22 lines
513 B
TypeScript
import { createApp } from "vue";
|
|
import { createPinia } from "pinia";
|
|
import ElementPlus from "element-plus";
|
|
import "element-plus/dist/index.css";
|
|
import "./styles/main.css";
|
|
|
|
import App from "./App.vue";
|
|
import router from "./router";
|
|
import { useStudyStore } from "./store/study";
|
|
|
|
const app = createApp(App);
|
|
const pinia = createPinia();
|
|
app.use(pinia);
|
|
app.use(router);
|
|
app.use(ElementPlus);
|
|
|
|
// 初始化项目上下文
|
|
const studyStore = useStudyStore();
|
|
studyStore.loadCurrentStudy();
|
|
|
|
app.mount("#app");
|