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-20 09:48:20 +08:00
|
|
|
import BaiduMap from 'vue-baidu-map-3x'
|
2024-02-19 13:44:32 +08:00
|
|
|
|
|
|
|
|
window.XEUtils = XEUtils
|
|
|
|
|
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
|
2024-02-20 09:48:20 +08:00
|
|
|
app.use(BaiduMap, {
|
2024-02-20 16:44:18 +08:00
|
|
|
ak: 'RpQi6WNFZ9tseKzhdwOQsXwFsoVntnsN',
|
|
|
|
|
|
2024-02-20 09:48:20 +08:00
|
|
|
// type: 'WebGL' // ||API 默认API (使用此模式 BMap=BMapGL)
|
2024-02-19 15:28:43 +08:00
|
|
|
})
|
2024-02-19 13:44:32 +08:00
|
|
|
app.use(router)
|
|
|
|
|
app.use(pinia)
|
2024-02-19 15:28:43 +08:00
|
|
|
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()
|