king
2021-02-05 a8ec1d4136507d54580c2599fbfbc70a9a38ee62
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 = ''
module.exports = function(app) {
  app.use(proxy('/webapi', { 
@@ -41,4 +39,13 @@
    '^/wxpay': '/'
    }
  }))
  app.use(proxy('/trans', {
    target: `${host}/${service}trans`,
    secure: false,
    changeOrigin: true,
    pathRewrite: {
    '^/trans': '/'
    }
  }))
}