riku
2024-06-12 58a5242ff58523f5d048da13fc543ffba5065414
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
 
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')