From e0af2503232d19012ec89adbb25498fbade4a353 Mon Sep 17 00:00:00 2001 From: zer0Black <694429613@qq.com> Date: Sun, 10 Apr 2022 17:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E5=92=8C?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=9A=84=E8=AE=BF=E9=97=AE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/public/api_address_config.js | 2 +- jero-web/src/views/system/modules/UserModal.vue | 2 +- jero-web/vue.config.js | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/jero-web/public/api_address_config.js b/jero-web/public/api_address_config.js index 74ec003e..46e28ba5 100644 --- a/jero-web/public/api_address_config.js +++ b/jero-web/public/api_address_config.js @@ -3,7 +3,7 @@ */ window._CONFIG = {} window._CONFIG['domianURL'] = '/jero-boot' // 路由转发 devServer -window._CONFIG['domianWebSocketURL'] = 'http://localhost:8080/jero-boot' +window._CONFIG['domianWebSocketURL'] = 'http://localhost:9999' // 单点登录地址 window._CONFIG['staticDomainURL'] = window._CONFIG['domianURL'] + '/sys/common/download' window._CONFIG['pdfDomainURL'] = window._CONFIG['domianURL'] + '/sys/common/pdf/pdfPreviewIframe' diff --git a/jero-web/src/views/system/modules/UserModal.vue b/jero-web/src/views/system/modules/UserModal.vue index e6d35b45..3878b72c 100644 --- a/jero-web/src/views/system/modules/UserModal.vue +++ b/jero-web/src/views/system/modules/UserModal.vue @@ -292,7 +292,7 @@ import { JSEncrypt } from 'jsencrypt' }) } that.model.selecteddeparts = selectDepartKeys.join(",") - that.nextDepartOptions=departOptions; + that.nextDepartOptions = departOptions; } }) }, diff --git a/jero-web/vue.config.js b/jero-web/vue.config.js index 1bb32f13..7795d742 100644 --- a/jero-web/vue.config.js +++ b/jero-web/vue.config.js @@ -87,9 +87,12 @@ module.exports = { } },*/ '/jero-boot': { - target: 'http://localhost:8080', //请求本地 jero-boot后台项目 + target: 'http://localhost:9999', //请求本地 jero-boot后台项目 ws: false, - changeOrigin: true + changeOrigin: true, + pathRewrite: { + '/jero-boot': '' //默认所有请求都加了jero-boot前缀,需要去掉 + } }, } },