king
2020-12-25 e843aabbda5e8761b6a8af0fe85119bdcf5b3fe8
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"
  }))
}