Browse Source

fix: 修改代理地址尝试连接后端

weijin 5 years ago
parent
commit
8f695f36c0
1 changed files with 11 additions and 11 deletions
  1. 11 11
      nuxt.config.js

+ 11 - 11
nuxt.config.js

@@ -84,25 +84,25 @@ module.exports = {
   },
   proxy: {
     '/api/': {
-      target: 'http://localhost:8080' // 代理地址
+      target: 'http://environment-24-71.seec.svc.cluster.local:8080' // 代理地址
       // changeOrigin: true,
       // pathRewrite: {
       //   '^/api': ''
       // },
     },
-    '/apis/':{
-      //target: 'http://localhost:5000',
-      target:'http://47.111.95.164:8080',
+    '/apis/': {
+      // target: 'http://localhost:5000',
+      target: 'http://47.111.95.164:8080',
       pathRewrite: {
-           '^/apis': '/api'
-         },
+        '^/apis': '/api'
+      }
     },
-    '/apiss/':{
-      //target: 'http://localhost:5000',
-      target:'http://47.111.95.164:8080',
+    '/apiss/': {
+      // target: 'http://localhost:5000',
+      target: 'http://47.111.95.164:8080',
       pathRewrite: {
-           '^/apiss': '/api'
-         },
+        '^/apiss': '/api'
+      }
     }
   }