riku
2024-07-08 8756117a473facf0bf64c9e28f821b52e46cce85
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/theme-chalk/src/dark/css-vars.scss'
 
import App from './App.vue'
import router from './router'
import timeUtil from './utils/time-util'
 
const app = createApp(App)
 
app.config.globalProperties.$fm = timeUtil
 
// elementUI Icon 注册
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
 
app.use(createPinia())
app.use(router)
 
app.mount('#app')