| | |
| | | const proxy = require('http-proxy-middleware') |
| | | const service = 'mkwms' |
| | | const host = 'http://qingqiumarket.cn' |
| | | const service = 'mkwms/' |
| | | |
| | | module.exports = function(app) { |
| | | app.use(proxy('/webapi', { |
| | | target: `http://qingqiumarket.cn/${service}/webapi`, |
| | | target: `${host}/${service}webapi`, |
| | | secure: false, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | |
| | | })) |
| | | |
| | | app.use(proxy('/zh-CN', { // 登录接口 |
| | | target: `http://qingqiumarket.cn/${service}/zh-CN`, |
| | | target: `${host}/${service}zh-CN`, |
| | | secure: false, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | |
| | | })) |
| | | |
| | | app.use(proxy('/Upload', { // 登录接口 |
| | | target: `http://qingqiumarket.cn/${service}/zh-CN/Home/Upload`, |
| | | target: `${host}/${service}zh-CN/Home/Upload`, |
| | | secure: false, |
| | | changeOrigin: true, |
| | | pathRewrite: { |