From c5ac0b79708c6694adb6a937669b0330ab96458f Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Mon, 14 Nov 2022 16:54:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=90=86=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vite.config.js b/vite.config.js index 5c62828..ac66fee 100644 --- a/vite.config.js +++ b/vite.config.js @@ -36,9 +36,9 @@ export default { changeOrigin: true, // true/false, Default: false - changes the origin of the host header to the target URL secure: false,//解决证书缺失问题 }, - '/apaas/portal':{ - target: 'https://apaas5.wodcloud.com/apaas/portal', // 所要代理的目标地址 - rewrite: path => path.replace(/^\/apaas\/portal/, ''), // 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的) + '/apaas/portal/ui':{ + target: 'https://apaas5.wodcloud.com/apaas/portal/ui', // 所要代理的目标地址 + rewrite: path => path.replace(/^\/apaas\/portal\/ui/, ''), // 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的) changeOrigin: true, // true/false, Default: false - changes the origin of the host header to the target URL secure: false,//解决证书缺失问题 }, -- 2.26.0