vue.config.js
@@ -52,8 +52,9 @@ }, proxy: { [process.env.VUE_APP_BASE_API]: { // target: 'http://121.196.36.24:8001', // 请求的第三⽅接⼝地址 本地开发服务器 target: 'http://192.168.1.102:8001', // 请求的第三⽅接⼝地址 莱科 // target: 'http://121.196.36.24:8011', // 请求的第三⽅接⼝地址 本地开发服务器 target: 'http://192.168.1.102:8001', // 请求的第三⽅接⼝地址 莱科 (未上云) // target: 'http://tr3b6v.natappfree.cc', // 请求的第三⽅接⼝地址 莱科 (上云) changeOrigin: true, // 请求跨域时,需 配置此项 pathRewrite: { // 路径重写,替换target中的请求地址