2024-09-27 16:37:35 +08:00
|
|
|
import { createApp } from "vue";
|
|
|
|
import "./style.css";
|
|
|
|
import App from "./App.vue";
|
2024-04-12 09:26:48 +08:00
|
|
|
// 引入路由
|
|
|
|
import router from "./router";
|
2024-09-27 16:37:35 +08:00
|
|
|
import ElementPlus from "element-plus";
|
|
|
|
import "element-plus/dist/index.css";
|
|
|
|
import "./assets/css/common.css";
|
|
|
|
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
|
2024-10-20 16:46:35 +08:00
|
|
|
// import {
|
|
|
|
// createPinia
|
|
|
|
// } from "pinia";
|
|
|
|
// //下面两行为持久化
|
|
|
|
// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
|
|
|
// const pinia = createPinia();
|
|
|
|
// pinia.use(piniaPluginPersistedstate);
|
|
|
|
|
2024-08-26 11:47:13 +08:00
|
|
|
|
2024-09-27 15:11:22 +08:00
|
|
|
// 引入 vConsole
|
2024-09-30 16:20:08 +08:00
|
|
|
// import VConsole from "vconsole";
|
2024-09-27 15:11:22 +08:00
|
|
|
// 初始化 vConsole
|
2024-09-30 16:20:08 +08:00
|
|
|
// const vConsole = new VConsole();
|
2024-09-27 16:37:35 +08:00
|
|
|
|
|
|
|
createApp(App)
|
|
|
|
.use(router)
|
|
|
|
.use(ElementPlus, {
|
2024-06-04 15:25:58 +08:00
|
|
|
locale: zhCn,
|
2024-09-27 16:37:35 +08:00
|
|
|
})
|
|
|
|
.mount("#app");
|