杨磊
2025-05-26 96be59a64cc1d8fcaf1034e787717663c68df4a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { createApp } from "vue";
import App from "./App.vue";
// 完整引入 Element Plus
import ElementPlus from "element-plus";
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)) {
  app.component(key, component);
}
 
// 使用 Element Plus
app.use(pinia)
app.use(ElementPlus);
 
app.use(router);
app.mount("#app");