Commit bbeeae4d by 周田

fix:图标打包问题

parent f48514d3
......@@ -7,13 +7,13 @@ import { createPinia } from 'pinia'
import 'element-plus/dist/index.css'
import router from './router'
import 'virtual:uno.css'
import * as Icons from '@element-plus/icons-vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const pinia = createPinia()
const app = createApp(App)
for (let i in Icons){
app.component(i, Icons[i])
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
app.use(pinia)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment