2024-02-19 13:44:32 +08:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import router from './router'
|
|
|
|
|
import pinia from '@/stores/index'
|
|
|
|
|
import { registerIcons } from '@/utils/common'
|
|
|
|
|
import mitt from 'mitt'
|
|
|
|
|
import VXETable from 'vxe-table'
|
|
|
|
|
import XEUtils from 'xe-utils'
|
|
|
|
|
import 'vxe-table/lib/style.css'
|
|
|
|
|
import ElementPlus from 'element-plus'
|
|
|
|
|
import 'element-plus/dist/index.css'
|
|
|
|
|
import 'element-plus/theme-chalk/display.css'
|
|
|
|
|
import '@fortawesome/fontawesome-free/css/all.css'
|
|
|
|
|
import '@/styles/index.scss'
|
|
|
|
|
import '@/assets/font/iconfont.css'
|
|
|
|
|
import { ElDialog } from 'element-plus'
|
2024-02-19 15:28:43 +08:00
|
|
|
// 引入vue-amap
|
|
|
|
|
import VueAMap, { initAMapApiLoader } from '@vuemap/vue-amap'
|
|
|
|
|
import '@vuemap/vue-amap/dist/style.css'
|
2024-02-19 13:44:32 +08:00
|
|
|
window.XEUtils = XEUtils
|
|
|
|
|
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
|
2024-02-19 15:28:43 +08:00
|
|
|
initAMapApiLoader({
|
2024-02-19 16:38:49 +08:00
|
|
|
key:'',
|
2024-02-19 15:28:43 +08:00
|
|
|
offline: true
|
|
|
|
|
})
|
2024-02-19 13:44:32 +08:00
|
|
|
app.use(router)
|
|
|
|
|
app.use(pinia)
|
2024-02-19 15:28:43 +08:00
|
|
|
app.use(VueAMap)
|
|
|
|
|
app.use(ElementPlus)
|
2024-02-19 13:44:32 +08:00
|
|
|
app.use(VXETable)
|
2024-02-19 15:28:43 +08:00
|
|
|
;(app._context.components.ElDialog as typeof ElDialog).props.closeOnClickModal.default = false
|
2024-02-19 13:44:32 +08:00
|
|
|
registerIcons(app) // icons
|
|
|
|
|
|
|
|
|
|
app.mount('#app')
|
|
|
|
|
app.config.globalProperties.eventBus = mitt()
|