|
@@ -63,8 +63,8 @@ module.exports = {
|
|
|
// contentBase: path.join(__dirname, "public"),
|
|
|
proxy: {
|
|
|
"/api": {
|
|
|
- target: "http://192.168.5.4:16200", // 石月
|
|
|
- // target: "http://192.168.50.235:16200", // 内网
|
|
|
+ // target: "http://192.168.5.4:16200", // 石月
|
|
|
+ target: "http://192.168.50.235:16200", // 内网
|
|
|
// target: "http://192.168.5.15:16200",
|
|
|
// target: "http://106.120.102.238:16700", // 外网 16600 16700
|
|
|
// target: "http://10.96.137.5",
|
|
@@ -72,9 +72,6 @@ module.exports = {
|
|
|
pathRewrite: {
|
|
|
"^/api": "", // 去掉 /api 前缀
|
|
|
},
|
|
|
- // onProxyReq(proxyReq, req, res) {
|
|
|
- // console.log("Proxying /api request to:", proxyReq.path); // 打印代理请求路径
|
|
|
- // },
|
|
|
},
|
|
|
// 未知量
|
|
|
"/WZLapi": {
|
|
@@ -83,19 +80,15 @@ module.exports = {
|
|
|
pathRewrite: {
|
|
|
"^/WZLapi": "", // 去掉 /WZLapi 前缀
|
|
|
},
|
|
|
-
|
|
|
},
|
|
|
- // 文佳
|
|
|
- "/WJapi": {
|
|
|
- target: "http://192.168.5.28:8888", // WZLapi 目标地址
|
|
|
- changeOrigin: true,
|
|
|
- pathRewrite: {
|
|
|
- "^/WJapi": "", // 去掉 /WZLapi 前缀
|
|
|
- },
|
|
|
- onProxyReq(proxyReq, req, res) {
|
|
|
- console.log("Proxying /sAlgorithm request to:", proxyReq.path); // 打印代理请求路径
|
|
|
- },
|
|
|
+ // 文佳
|
|
|
+ "/WJapi": {
|
|
|
+ target: "http://192.168.5.28:8888", // WZLapi 目标地址
|
|
|
+ changeOrigin: true,
|
|
|
+ pathRewrite: {
|
|
|
+ "^/WJapi": "", // 去掉 /WZLapi 前缀
|
|
|
},
|
|
|
+ },
|
|
|
"/transDataWeb": {
|
|
|
target: "http://192.168.50.241:9000/trans_data_web",
|
|
|
changeOrigin: true,
|
|
@@ -110,11 +103,7 @@ module.exports = {
|
|
|
pathRewrite: {
|
|
|
"^/sAlgorithm": "", // 如果后端需要 `/api` 前缀
|
|
|
},
|
|
|
- onProxyReq(proxyReq, req, res) {
|
|
|
- console.log("Proxying /sAlgorithm request to:", proxyReq.path); // 打印代理请求路径
|
|
|
- },
|
|
|
},
|
|
|
-
|
|
|
"/databaseApi": {
|
|
|
target: "http://192.168.5.18:3000",
|
|
|
changeOrigin: true,
|