2025-04-18 20:09:21 +08:00
|
|
|
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'
|
2025-04-21 11:11:08 +08:00
|
|
|
import vhCheck from 'vh-check'
|
2025-04-18 20:09:21 +08:00
|
|
|
|
|
|
|
// 引入 Element Plus
|
|
|
|
import ElementPlus from 'element-plus'
|
2025-04-20 19:46:51 +08:00
|
|
|
// 使用自定义主题
|
|
|
|
import './styles/element-variables.scss'
|
2025-04-18 20:09:21 +08:00
|
|
|
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,
|
|
|
|
})
|
2025-04-21 11:11:08 +08:00
|
|
|
app.mount("#app");
|
|
|
|
vhCheck()
|