diff --git a/vite.config.js b/vite.config.js index d24cbfb..1aff1b7 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,9 +5,9 @@ import autoprefixer from 'autoprefixer'; const Timestamp = new Date().getTime(); //随机时间戳 -let ipLink = 'https://server1.wh-nf.cn:8201/prod-api'; +// let ipLink = 'https://server1.wh-nf.cn:8201/prod-api'; // let ipLink = 'http://192.168.16.135:9100'; -// let ipLink = 'http://192.168.16.124:9100'; +let ipLink = 'http://192.168.16.124:9100'; // let ipLink = 'http://192.168.16.43:9100'; // 谢杨 /* */ // https://vitejs.dev/config/ @@ -69,14 +69,14 @@ '/prod-api/amap': { target: 'https://restapi.amap.com', //geocode服务 changeOrigin: true, - rewrite: p => p.replace("/prod-api/amap", ''), + rewrite: p => p.replace('/prod-api/amap', ''), }, '/prod-api/bdApi': { // target: 'http://192.168.16.34:8105/', //测试服务 target: 'https://server2.wh-nf.cn:8088/prod-api/bdApi/', //测试服务 changeOrigin: true, logLevel: 'debug', - rewrite: p => p.replace("/prod-api/bdApi", ''), + rewrite: p => p.replace('/prod-api/bdApi', ''), }, '/prod-api': { target: ipLink,