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" })) }