|
@@ -19,16 +19,19 @@ module.exports = {
|
|
|
port: '8001',
|
|
|
//api地址前缀
|
|
|
proxy: {
|
|
|
- '/api': {
|
|
|
+ '/weixin': {
|
|
|
target: 'http://smart.cc-lotus.info',
|
|
|
+ changeOrigin: true,
|
|
|
ws: true,
|
|
|
- onProxyReq(proxyReq, req, res) {
|
|
|
- proxyReq.setHeader('x-tenant', '99991');
|
|
|
- },
|
|
|
},
|
|
|
'/files': {
|
|
|
target: 'http://free.liaoningdoupo.com',
|
|
|
},
|
|
|
+ '/api': {
|
|
|
+ target: 'http://free.liaoningdoupo.com',
|
|
|
+ changeOrigin: true,
|
|
|
+ ws: true,
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
};
|