wx/src/main.js

25 lines
641 B
JavaScript
Raw Normal View History

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'
// 引入 Element Plus
import ElementPlus from 'element-plus'
// 使用自定义主题
import './styles/element-variables.scss'
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()