24 lines
634 B
JavaScript
24 lines
634 B
JavaScript
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||
import ElementPlus from 'element-plus'
|
||
import 'element-plus/dist/index.css'
|
||
import { createPinia } from 'pinia'
|
||
import { createApp } from 'vue'
|
||
import App from './App.vue'
|
||
import './assets/styles/index.css'
|
||
import router from './router'
|
||
|
||
// 引入Mock(开发阶段已关闭,使用真实API)
|
||
// import './mock'
|
||
|
||
const app = createApp(App)
|
||
|
||
// 注册所有图标
|
||
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
||
app.component(key, component)
|
||
}
|
||
|
||
app.use(ElementPlus, { size: 'default' })
|
||
app.use(createPinia())
|
||
app.use(router)
|
||
app.mount('#app')
|