vue.config.js
@@ -52,9 +52,8 @@ }, proxy: { [process.env.VUE_APP_BASE_API]: { // target: 'http://121.196.36.24:8032', // 本地 // target: 'http://192.168.1.237:8000', // 请求的第三⽅接⼝地址 客户 target: 'http://192.168.3.27:8000', // 请求的第三⽅接⼝地址 本地开发服务器 沣沣 target: 'http://121.196.36.24:8032', // 本地 // target: 'http://192.168.3.27:8000', // 请求的第三⽅接⼝地址 本地开发服务器 沣沣 changeOrigin: true, // 请求跨域时,需 配置此项 pathRewrite: { // 路径重写,替换target中的请求地址 ['^' + process.env.VUE_APP_BASE_API]: '/api/'