From c834537aadb80baad341eaf26ec6d88d41b5f7c5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 14 一月 2021 21:25:09 +0800 Subject: [PATCH] 2021-01-14 --- src/setupProxy.js | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/setupProxy.js b/src/setupProxy.js index 1aca9db..f0f93f1 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 = '' +const host = 'http://bms-test.kresstools.cn' +const service = 'oc/' module.exports = function(app) { app.use(proxy('/webapi', { @@ -41,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