初始化前端目录
This commit is contained in:
@@ -5,14 +5,16 @@ import router from './router' // 新增
|
||||
import { createPinia } from 'pinia'
|
||||
import Antd from 'ant-design-vue'
|
||||
import 'ant-design-vue/dist/reset.css'
|
||||
import icons from './icons'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
const pinia = createPinia()
|
||||
|
||||
|
||||
app.use(createPinia()) // 注册Pinia
|
||||
app.use(router) // 注册路由
|
||||
app.use(pinia);
|
||||
app.use(Antd) // 注册Ant Design Vue
|
||||
Object.entries(icons).forEach(([name, component]) => {
|
||||
app.component(name, component)
|
||||
})
|
||||
app.mount('#app')
|
||||
Reference in New Issue
Block a user