From 89ee68c59cdcaa4b7fa0178be42d58bec651ee73 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 09 七月 2020 12:15:03 +0800 Subject: [PATCH] 2020-07-09 --- src/setupProxy.js | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/setupProxy.js b/src/setupProxy.js index a14f43b..1aca9db 100644 --- a/src/setupProxy.js +++ b/src/setupProxy.js @@ -33,12 +33,12 @@ } })) - // app.use(proxy('/local', { - // target: 'http://127.0.0.1:8888', - // secure: false, - // changeOrigin: true, - // pathRewrite: { - // '^/local': '/' - // } - // })) + app.use(proxy('/wxpay', { + target: `${host}/${service}wxpay`, + secure: false, + changeOrigin: true, + pathRewrite: { + '^/wxpay': '/' + } + })) } \ No newline at end of file -- Gitblit v1.8.0