2023-12-21 16:42:39 +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 ElementPlus from 'element-plus'
|
|
|
|
|
import 'element-plus/dist/index.css'
|
|
|
|
|
import 'element-plus/theme-chalk/display.css'
|
|
|
|
|
// modules import mark, Please do not remove.
|
|
|
|
|
import '@/styles/index.scss'
|
2023-12-26 08:45:15 +08:00
|
|
|
import '@/assets/font/iconfont.css'
|
2023-12-21 16:42:39 +08:00
|
|
|
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
|
|
|
|
|
app.use(router)
|
|
|
|
|
app.use(pinia)
|
|
|
|
|
app.use(ElementPlus)
|
|
|
|
|
registerIcons(app) // icons
|
|
|
|
|
|
|
|
|
|
app.mount('#app')
|
|
|
|
|
app.config.globalProperties.eventBus = mitt()
|