refactor: export

This commit is contained in:
xiaojunnuo
2021-02-09 19:01:15 +08:00
parent 105a1b80ae
commit 136983cf14
5 changed files with 2 additions and 19 deletions
+1
View File
@@ -21,6 +21,7 @@ const icons = {
}
export default function (app) {
_.forEach(icons, item => {
console.log('icons:', item.name)
app.component(item.name, item)
})
}
+1 -1
View File
@@ -10,7 +10,7 @@ import components from './components'
const app = createApp(App)
app.config.productionTip = false
app.use(i18n)
app.use(Antd)
icons(app)
app.use(Antd)
app.use(components)
app.use(router).mount('#app')