From a9ac16fecc0cf9bc66dfaefe4e9b35fa3c722812 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 10 十一月 2020 16:58:43 +0800 Subject: [PATCH] 2020-11-10 --- src/setupProxy.js | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/setupProxy.js b/src/setupProxy.js index a14f43b..96428c2 100644 --- a/src/setupProxy.js +++ b/src/setupProxy.js @@ -1,8 +1,6 @@ const proxy = require('http-proxy-middleware') const host = 'http://qingqiumarket.cn' const service = 'mkwms/' -// const host = 'http://cloud.mk9h.cn' -// const service = '' module.exports = function(app) { app.use(proxy('/webapi', { @@ -33,12 +31,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