From e843aabbda5e8761b6a8af0fe85119bdcf5b3fe8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 25 十二月 2020 15:09:06 +0800 Subject: [PATCH] bms 登录 --- 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