From f47a9c475873558da086ed28400647a7490f4028 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 20 一月 2021 18:48:47 +0800 Subject: [PATCH] 2021-01-20 --- src/setupProxy.js | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/setupProxy.js b/src/setupProxy.js index 96428c2..f0f93f1 100644 --- a/src/setupProxy.js +++ b/src/setupProxy.js @@ -1,6 +1,6 @@ const proxy = require('http-proxy-middleware') -const host = 'http://qingqiumarket.cn' -const service = 'mkwms/' +const host = 'http://bms-test.kresstools.cn' +const service = 'oc/' module.exports = function(app) { app.use(proxy('/webapi', { @@ -39,4 +39,14 @@ '^/wxpay': '/' } })) + + app.use(proxy('/Home', { + target: `${host}/Home`, + secure: false, + changeOrigin: true, + pathRewrite: { + '^/Home': '/' + } + // cookieDomainRewrite: "http://localhost:3000" + })) } \ No newline at end of file -- Gitblit v1.8.0