餐饮油烟智能监测与监管一体化平台
riku
2026-03-19 64d3eae2852d17c3bbade662d3f7a7c47d681ad6
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
31
32
33
34
35
36
37
38
39
40
import { createApp } from 'vue'
import { createPinia } from 'pinia'
 
import App from './App.vue'
import router from './router'
 
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { ElMessageBox, ElNotification, ElMessage } from 'element-plus'
import 'element-plus/theme-chalk/src/overlay.scss'
import 'element-plus/theme-chalk/src/message.scss'
import 'element-plus/theme-chalk/src/message-box.scss'
import 'element-plus/theme-chalk/src/notification.scss'
 
// dayjs plugin
import dayjs from 'dayjs'
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'
import quarterOfYear from 'dayjs/plugin/quarterOfYear'
 
import './style/main.scss'
 
import './utils/expand'
import timeUtil from './utils/time-util'
 
dayjs.extend(isSameOrAfter)
dayjs.extend(isSameOrBefore)
dayjs.extend(quarterOfYear)
 
const app = createApp(App)
 
app.config.globalProperties.$fm = timeUtil
 
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
 
app.use(createPinia())
app.use(router)
 
app.mount('#app')