15 lines
482 B
TypeScript
15 lines
482 B
TypeScript
import { createApp } from 'vue'
|
|||
|
|
import ElementPlus from 'element-plus'
|
||
|
|
import 'element-plus/dist/index.css'
|
||
|
|
import App from './App.vue'
|
||
|
|
import router from './router'
|
||
|
|
import { createPinia } from 'pinia'
|
||
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||
|
|
import './assets/style.scss'
|
||
|
|
|
||
|
|
const app = createApp(App)
|
||
|
|
for (const [key, comp] of Object.entries(ElementPlusIconsVue)) {
|
||
|
|
app.component(key, comp)
|
||
|
|
}
|
||
|
|
app.use(ElementPlus).use(router).use(createPinia()).mount('#app')
|