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" // 导入所有样式
|
2025-08-14 13:33:15 +08:00
|
|
|
import zhCn from "element-plus/dist/locale/zh-cn.mjs" // 中文语言包
|
|
|
|
|
import "element-plus/dist/index.css"
|
2025-08-19 16:31:51 +08:00
|
|
|
import piniaPluginPersistedstate from "pinia-plugin-persistedstate" // pinia持久化
|
2025-08-08 17:51:36 +08:00
|
|
|
import router from "./router"
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
const pinia = createPinia()
|
|
|
|
|
pinia.use(piniaPluginPersistedstate)
|
|
|
|
|
app.use(pinia)
|
|
|
|
|
app.use(ElementPlus)
|
|
|
|
|
app.use(router)
|
2025-08-14 13:33:15 +08:00
|
|
|
app.use(ElementPlus, {
|
|
|
|
|
locale: zhCn // 设置为中文
|
|
|
|
|
})
|
2025-08-08 17:51:36 +08:00
|
|
|
app.mount("#app")
|