vue.config.js
@@ -13,12 +13,12 @@ //proxy: "http://192.168.20.70:8001/" // // 配置跨域-请求后端的代理接口 proxy: { "/abc": { target: "http://172.16.2.10:50001/sj_raster/v6/service/10000501/1", //对应自己的接口 "/TMS": { target: "http://192.168.20.39:9055/gisserver/tmsserver/moondom", //对应自己的接口 changeOrigin: true, ws: true, pathRewrite: { "^/abc": "", "^/TMS": "", }, }, },