From c45a375e5b4ce0e33c7fc8a1aecdad67d60acc9e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 01 三月 2021 15:09:06 +0800 Subject: [PATCH] 2021-03-01 --- src/setupProxy.js | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/setupProxy.js b/src/setupProxy.js index 96428c2..d5d27d1 100644 --- a/src/setupProxy.js +++ b/src/setupProxy.js @@ -39,4 +39,13 @@ '^/wxpay': '/' } })) + + app.use(proxy('/trans', { + target: `${host}/${service}trans`, + secure: false, + changeOrigin: true, + pathRewrite: { + '^/trans': '/' + } + })) } \ No newline at end of file -- Gitblit v1.8.0