Bläddra i källkod

:zap: 优化前端代理规则 / -> /

冷冷 5 år sedan
förälder
incheckning
5e4cb84db2
1 ändrade filer med 3 tillägg och 79 borttagningar
  1. 3 79
      vue.config.js

+ 3 - 79
vue.config.js

@@ -24,90 +24,14 @@ module.exports = {
     disableHostCheck: true,
     port: 8080,
     proxy: {
-      '/auth': {
+      '/': {
         target: url,
         ws: true,
         pathRewrite: {
-          '^/auth': '/auth'
-        }
-      },
-      '/admin': {
-        target: url,
-        ws: true,
-        pathRewrite: {
-          '^/admin': '/admin'
-        }
-      },
-      '/code': {
-        target: url,
-        ws: true,
-        pathRewrite: {
-          '^/code': '/code'
-        }
-      },
-      '/gen': {
-        target: url,
-        ws: true,
-        pathRewrite: {
-          '^/gen': '/gen'
-        }
-      },
-      '/actuator': {
-        target: url,
-        ws: true,
-        pathRewrite: {
-          '^/actuator': '/actuator'
-        }
-      },
-      '/monitor': {
-        target: url,
-        ws: true,
-        pathRewrite: {
-          '^/monitor': '/monitor'
-        }
-      },
-      '/mp': {
-        target: url,
-        ws: true,
-        pathRewrite: {
-          '^/mp': '/mp'
-        }
-      },
-      '/daemon': {
-        target: url,
-        ws: true,
-        pathRewrite: {
-          '^/daemon': '/daemon'
-        }
-      },
-      '/job': {
-        target: url,
-        ws: true,
-        pathRewrite: {
-          '^/job': '/job'
-        }
-      },
-      '/tx': {
-        target: url,
-        ws: true,
-        pathRewrite: {
-          '^/tx': '/tx'
-        }
-      },
-      '/pay': {
-        target: url,
-        ws: true,
-        pathRewrite: {
-          '^/pay': '/pay'
-        }
-      },
-      '/act': {
-        target: url,
-        ws: true,
-        pathRewrite: {
-          '^/act': '/act'
+          '^/': '/'
         }
       }
+      // 3.5 以后不需要再配置
     }
   }
 }