| | |
| | | import * as ElementPlusIconsVue from "@element-plus/icons-vue"; |
| | | import router from "./router"; |
| | | import "./styles/global.less"; |
| | | import pinia from '@/store/index' |
| | | |
| | | |
| | | |
| | | import MG from "@/assets/js/middleGround/WebMiddleGroundApi.js" |
| | | import toolClass from '@/assets/js/toolClass.js' |
| | | import config from "@/assets/js/config.js" |
| | | const app = createApp(App); |
| | | |
| | | |
| | | app.provide('config', config) |
| | | app.provide('MG', MG) |
| | | app.provide('toolClass', toolClass) |
| | | |
| | | // 注册所有图标 |
| | | for (const [key, component] of Object.entries(ElementPlusIconsVue)) { |
| | |
| | | } |
| | | |
| | | // 使用 Element Plus |
| | | app.use(pinia) |
| | | app.use(ElementPlus); |
| | | |
| | | app.use(router); |