From 0cc44e127cfe13a41a75a9a70f8237020fdef8ac Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 30 May 2022 15:31:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BE=9B=E6=96=B0=E7=9A=84=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/axios.js | 5 ++++- src/manifest.json | 15 +++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/common/axios.js b/src/common/axios.js index d8aa3fff..8db24e24 100644 --- a/src/common/axios.js +++ b/src/common/axios.js @@ -14,7 +14,10 @@ instance.interceptors.request.use(config => { config.url = config.url.replace(/(app|auth|admin)\//, "api/") } if (/\/grid\//.test(location.pathname)) { - config.baseURL = '/grid' + config.baseURL = '/wangge' + } + if (/\/project\/police\//.test(location.pathname)) { + config.baseURL = '/hnjc' } if (sessionStorage.getItem("prj") == "saas") { config.url = config.url.replace(/(app|auth|admin)\//, "api/") diff --git a/src/manifest.json b/src/manifest.json index c857be64..ae32152a 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -36,7 +36,7 @@ } }, "/online": { - "target": "https://test87xcxc.cunwuyun.cn", + "target": "http://192.168.1.34:19898", "changeOrigin": true, "pathRewrite": { "^/online": "/" @@ -57,11 +57,18 @@ "^/online/tmap/": "/" } }, - "/grid": { - "target": "http://192.168.1.87:12307", + "/wangge": { + "target": "http://192.168.1.34:10000/", "changeOrigin": true, "pathRewrite": { - "^/grid": "/" + "^/wangge": "/" + } + }, + "/hnjc": { + "target": "http://192.168.1.87:12001/", + "changeOrigin": true, + "pathRewrite": { + "^/hnjc": "/" } } }