mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
refactor: export
This commit is contained in:
@@ -21,6 +21,7 @@ const icons = {
|
||||
}
|
||||
export default function (app) {
|
||||
_.forEach(icons, item => {
|
||||
console.log('icons:', item.name)
|
||||
app.component(item.name, item)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user