import './assets/main.css'
|
|
import { createApp } from 'vue'
|
import { createPinia } from 'pinia'
|
|
import App from './App.vue'
|
// 完整引入 Element Plus
|
import ElementPlus from 'element-plus'
|
import 'element-plus/dist/index.css'
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
import router from './router'
|
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)
|
}
|
app.use(ElementPlus)
|
app.use(createPinia())
|
app.use(router)
|
|
app.mount('#app')
|