Files
Yi.Admin/Yi.BBS.Vue3/src/main.js

17 lines
411 B
JavaScript
Raw Normal View History

2023-02-26 13:17:19 +08:00
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import './assets/main.css'
2023-03-05 20:30:44 +08:00
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
2023-02-26 13:17:19 +08:00
const app = createApp(App)
2023-03-05 20:30:44 +08:00
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
2023-02-26 13:17:19 +08:00
app.use(createPinia())
app.use(router)
app.mount('#app')