2026-01-31 16:48:20 +08:00
|
|
|
|
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'
|
|
|
|
|
|
|
2026-02-01 00:11:04 +08:00
|
|
|
|
// 引入Mock(开发阶段已关闭,使用真实API)
|
|
|
|
|
|
// import './mock'
|
2026-01-31 16:48:20 +08:00
|
|
|
|
|
|
|
|
|
|
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')
|