guhongwei 4 éve
szülő
commit
453f39d398
1 módosított fájl, 7 hozzáadás és 4 törlés
  1. 7 4
      vue.config.js

+ 7 - 4
vue.config.js

@@ -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,
+      },
     },
   },
 };