| | |
| | | import { createApp } from 'vue' |
| | | import { createPinia } from 'pinia' |
| | | import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' |
| | | import ElementPlus from 'element-plus' |
| | | import 'element-plus/dist/index.css' |
| | | import './assets/styles/global.css' |
| | |
| | | for (const [key, component] of Object.entries(ElementPlusIconsVue)) { |
| | | app.component(key, component) |
| | | } |
| | | |
| | | // import('vconsole').then((module) => { |
| | | // new module.default() |
| | | // }) |
| | | |
| | | app.config.globalProperties.$rules = ruleGenerator |
| | | app.config.globalProperties.$property = property |
| | | app.config.globalProperties.$qxueyou = qxueyou |
| | |
| | | app.use(ElementPlus, { |
| | | locale: zhCn |
| | | }) |
| | | app.use(createPinia()) |
| | | const pinia = createPinia() |
| | | pinia.use(piniaPluginPersistedstate) |
| | | app.use(pinia) |
| | | app.use(router) |
| | | |
| | | app.mount('#app') |