2025-08-08 17:51:36 +08:00
|
|
|
import { createApp } from "vue"
|
|
|
|
|
import { createPinia } from "pinia"
|
|
|
|
|
import App from "./App.vue"
|
|
|
|
|
import ElementPlus from "element-plus"
|
|
|
|
|
import "./assets/style/reset.css"
|
|
|
|
|
import "element-plus/dist/index.css" // 导入所有样式
|
|
|
|
|
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"
|
|
|
|
|
import router from "./router"
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
const pinia = createPinia()
|
|
|
|
|
pinia.use(piniaPluginPersistedstate)
|
|
|
|
|
app.use(pinia)
|
|
|
|
|
app.use(ElementPlus)
|
|
|
|
|
app.use(router)
|
|
|
|
|
app.mount("#app")
|