# 进入到web项目根目录cd web#在cmd命令窗口执行npminstall @ant-design/icons-vue --save# 在main.ts引入import{createApp} from 'vue'import App from './App.vue'import router from './router'import store from './store'import Antd from 'ant-design-vue';import'ant-design-vue/dist/antd.css';import axios from 'axios';import * as Icons from '@ant-design/icons-vue';axios.defaults.baseURL = process.env.VUE_APP_SERVER;const app = createApp(App);
app.use(store).use(router).use(Antd).mount('#app');// 全局使用图标
const icons: any = Icons;for(const i in icons){app.component(i, icons[i]);}