From cfb6090ea7117d701c9d8746cf057bd9ee3d4bd5 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Tue, 6 Dec 2022 18:03:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90update=E3=80=91-=E5=A2=9E=E5=8A=A0WP29?= =?UTF-8?q?=E5=92=8CISO=E7=AD=89=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/vue.config.js b/vue.config.js index 40768d4..ef936c6 100644 --- a/vue.config.js +++ b/vue.config.js @@ -90,16 +90,28 @@ module.exports = { // '' target: 'http://localhost:8080', //请求本地 jero-boot后台项目 ws: false, - changeOrigin: true, + changeOrigin: true }, - // 请求大屏客户环境 - '/zxd':{ - target: 'http://www.catarc.org.cn:8088', + // 请求WP29客户环境 + "/WPApi": { + target: "http://localhost:8080", + changeOrigin: true, + ws: false, + pathRewrite: { + "^/WPApi": "/jeecg-boot" // 请求WP29项目的后端并重写前缀 + } + }, + "/ISO": { + target: "http://localhost:8081", ws: false, changeOrigin: true, + pathRewrite: { + "^/ISO": "/jeecg-boot" // 请求WP29项目的后端并重写前缀 + } } - }, + + } }, - lintOnSave: true, + lintOnSave: true }