Ver Fonte

gengxin

guhongwei há 4 anos atrás
pai
commit
37b9c9604c
1 ficheiros alterados com 6 adições e 5 exclusões
  1. 6 5
      vue.config.js

+ 6 - 5
vue.config.js

@@ -20,16 +20,17 @@ module.exports = {
     //api地址前缀
     proxy: {
       '/files': {
-        target: 'http://jh.tgoodsoft.net',
-        pathRewrite: {
-          '^/files': '',
-        },
+        target: 'https://zb.liaoningdoupo.com',
       },
       '/api': {
-        target: 'http://jh.tgoodsoft.net',
+        target: 'http://192.168.1.43:8080',
         changeOrigin: true,
         ws: true,
       },
+      '/ws': {
+        target: 'https://zb.liaoningdoupo.com',
+        ws: true,
+      },
     },
   },
 };