riku
2024-06-04 082410a1d196a214265fda2f5ca71bbed5305f88
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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'
 
const app = createApp(App)
 
// elementUI Icon 注册
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
 
app.use(createPinia())
app.use(router)
 
app.mount('#app')