king
2019-12-18 977ce3d348f898d64ea240c8397b83d3e1cc5bb4
src/setupProxy.js
@@ -1,8 +1,9 @@
const proxy = require('http-proxy-middleware')
const service = 'mkwms'
module.exports = function(app) {
  app.use(proxy('/webapi', { 
    target: 'http://qingqiumarket.cn/MKWMS/webapi',
    target: `http://qingqiumarket.cn/${service}/webapi`,
    secure: false,
    changeOrigin: true,
    pathRewrite: {
@@ -12,7 +13,7 @@
  }))
  
  app.use(proxy('/zh-CN', { // 登录接口
    target: 'http://qingqiumarket.cn/MKWMS/zh-CN',
    target: `http://qingqiumarket.cn/${service}/zh-CN`,
    secure: false,
    changeOrigin: true,
    pathRewrite: {