From 761107165545d537a50c759cde1b64dbdafbc847 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 31 Jan 2023 17:58:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=BE=E6=A2=A6=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/axios.js | 4 +++- src/manifest.json | 7 +++++++ src/pages/login.vue | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/common/axios.js b/src/common/axios.js index 15fdf189..6877fba7 100644 --- a/src/common/axios.js +++ b/src/common/axios.js @@ -9,7 +9,9 @@ instance.interceptors.request.use(config => { } else if (/AppCountryAlbum/.test(location.pathname) || config.module == 'AppCountryAlbum' || module == "AppCountryAlbum") { config.baseURL = '/aca' config.url = config.url.replace(/(app|auth|admin)\//, "api/") - } else if (/\/project\/beta\//.test(location.pathname) || config.module == 'wangge' || module == "wangge") { + } else if (/AppOpenChat/.test(location.pathname) || config.module == 'AppOpenChat' || module == "AppOpenChat") { + config.baseURL = '/dm' + config.url = config.url.replace(/(app|auth|admin)\//, "api/") } else if (/saas/.test(location.pathname) || config.module == 'saas' || module == "saas") { config.baseURL = '/online' } else if (/\/project\/police\//.test(location.pathname) || config.module == 'hnjc' || module == "hnjc") { diff --git a/src/manifest.json b/src/manifest.json index a1531540..36c3f78f 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -86,6 +86,13 @@ "^/xaxc": "/" } }, + "/dm": { + "target": "http://192.168.1.87:11211/", + "changeOrigin": true, + "pathRewrite": { + "^/dm": "/" + } + }, "/qxn": { "target": "http://192.168.1.87:12001/", "changeOrigin": true, diff --git a/src/pages/login.vue b/src/pages/login.vue index 4a97d66d..44a80e15 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -82,7 +82,7 @@ export default { module = 'wangge' }else if (/\/project\/activeAnalysis\//.test(libPath)) { module = 'yyhd' - } + } this.setModule(module) return Promise.resolve({corpId, module}) }