vue.config.js
@@ -52,8 +52,8 @@ }, proxy: { [process.env.VUE_APP_BASE_API]: { target: 'http://121.196.36.24:8034', // 本地 // target: 'http://192.168.0.99:8000', // 桥下 target: 'http://121.196.36.24:8037', // 本地 // target: 'http://192.168.10.81:8000', // 新光 changeOrigin: true, // 请求跨域时,需 配置此项 pathRewrite: { // 路径重写,替换target中的请求地址 ['^' + process.env.VUE_APP_BASE_API]: '/api/'