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': '/' } })) }