项目打包的过程 第一步: 1.在config文件里面的index.js中的dev属性中的proxyTable属性配置target:‘’ proxyTable: { //跨域代理 "/V1.0": { // target: 'http://192.168.3.129:8081', //基本的路径 target: '', changeOrigin: true, //允许转发 pathRewrite: { "^/V1.0": "/V1.0", //重写路径 } }, }, 第二步 2.执行 npm run build 对象项目进行打包 生成的 dist文件夹发给后端