22 lines
571 B
JavaScript
22 lines
571 B
JavaScript
|
import { createApp } from "vue";
|
||
|
import "./style.css";
|
||
|
import App from "./App.vue";
|
||
|
import {router} from "@/router/index";
|
||
|
import { createPinia } from "pinia";
|
||
|
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
||
|
|
||
|
// 引入 Element Plus
|
||
|
import ElementPlus from 'element-plus'
|
||
|
import 'element-plus/dist/index.css'
|
||
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
||
|
|
||
|
const pinia = createPinia();
|
||
|
pinia.use(piniaPluginPersistedstate)
|
||
|
|
||
|
const app = createApp(App);
|
||
|
app.use(pinia);
|
||
|
app.use(router);
|
||
|
app.use(ElementPlus, {
|
||
|
locale: zhCn,
|
||
|
})
|
||
|
app.mount("#app");
|