From b1d02b4a7a94109f0bbb46efd8d9c4d1a4bd23c0 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 20 九月 2023 10:11:33 +0800 Subject: [PATCH] 请求地址修改 --- vue.config.js | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/vue.config.js b/vue.config.js index b48fa64..524ff0f 100644 --- a/vue.config.js +++ b/vue.config.js @@ -13,12 +13,13 @@ productionSourceMap: false, // 濡傛灉浣犱笉闇�瑕佺敓浜х幆澧冪殑source map, 鍙互灏嗗叾璁剧疆涓篺alse 浠ュ姞閫熺敓浜х幆澧冩瀯寤� devServer: { proxy: { - "/api": { - - // target: "http://192.168.20.118:8889", // http://192.168.20.119:8002 http://fai365.com:30150/ - // target: "http://192.168.20.120:8004", - target: "http://192.168.20.119:8004", // http://192.168.20.119:8004 http://fai365.com:30150/ - + "/api-s": { + target: "http://192.168.20.119:8005", + ws: true, + changeOrigin: true + }, + "/api-wms": { + target: "http://192.168.20.119:8001", ws: true, changeOrigin: true } -- Gitblit v1.8.0