上一篇 :SpringBoot + Vue3 + Ant Design 篇1 搭建Vue3框架
添加ant design
- 进入项目文件夹输入
npm i --save ant-design-vue@next
- 完成安装
1. main.js添加Ant Design组件
import { createApp } from "vue";
import Antd from "ant-design-vue";
import App from "./App";
import "ant-design-vue/dist/antd.css";
import router from "./router";
import store from "./store";
const app = createApp(App);
app.config.productionTip = false;
app.use(router);
app.use(store);
app.use(Antd);
app.mount("#app");
文章评论