22 lines
588 B
TypeScript
22 lines
588 B
TypeScript
|
|
import { createApp } from 'vue'
|
||
|
|
import { createPinia } from 'pinia'
|
||
|
|
import ElementPlus from 'element-plus'
|
||
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||
|
|
import 'element-plus/dist/index.css'
|
||
|
|
|
||
|
|
import App from './App.vue'
|
||
|
|
import { router } from './router'
|
||
|
|
import './style.css'
|
||
|
|
|
||
|
|
const app = createApp(App)
|
||
|
|
|
||
|
|
// Register every Element Plus icon globally (used by `<el-icon><ChatDotRound/>`).
|
||
|
|
for (const [name, component] of Object.entries(ElementPlusIconsVue)) {
|
||
|
|
app.component(name, component)
|
||
|
|
}
|
||
|
|
|
||
|
|
app.use(createPinia())
|
||
|
|
app.use(router)
|
||
|
|
app.use(ElementPlus)
|
||
|
|
app.mount('#app')
|