官网:https://doc.vue-antd-admin.pages.dev/
github地址:https://github.com/iczer/vue-antd-admin/tree/basic
1、basic分支本地部署(开发基于此分支)
克隆项目basic分支到本地
->> 下载依赖:npm install
->> 启动项目:npm run serve
2、master分支本地部署(研究基于此分支 - 试例页面较多)
克隆项目master分支到本地
->>修改package.json文件适配win平台
{
...
"scripts":{
"serve@mac": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"build@mac": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
"serve@win": "vue-cli-service serve",
"build@win": "vue-cli-service build",
...
}
...
}
->>修改package.json固定vue、vue-template-compiler版本(删除^),防止后续安装依赖自动升级vue导致编译报错。参考https://blog.csdn.net/CSDN_bare/article/details/131451561
"vue": "^2.6.11" --> "vue": "2.6.11"
"vue-template-compiler": "^2.6.11" --> "vue-template-compiler": "2.6.11"
->>下载依赖:npm install
->>启动项目:npm run serve@win