Преглед изворни кода

config(proxy): 更新代理服务器目标地址

- 将/api接口代理目标从localhost:8070更改为localhost:5000
- 将/files接口代理目标从localhost:8070更改为localhost:5000
dazhaxie пре 3 недеља
родитељ
комит
360b7ae26c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      vue.config.js

+ 2 - 2
vue.config.js

@@ -100,7 +100,7 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
     proxy: {
       '/api': {
       '/api': {
-        target: 'http://localhost:8070',
+        target: 'http://localhost:5000',
         ws: false,
         ws: false,
         changeOrigin: true,
         changeOrigin: true,
         pathRewrite: {
         pathRewrite: {
@@ -108,7 +108,7 @@ const vueConfig = {
         }
         }
       },
       },
       '/files': {
       '/files': {
-        target: 'http://localhost:8070',
+        target: 'http://localhost:5000',
         ws: false,
         ws: false,
         changeOrigin: true
         changeOrigin: true
       }
       }