Browse Source

Merge remote-tracking branch 'origin/master'

yuhan 1 year ago
parent
commit
11e35c170f
1 changed files with 11 additions and 11 deletions
  1. 11 11
      vue.config.js

+ 11 - 11
vue.config.js

@@ -97,18 +97,18 @@ module.exports = {
     //     'Access-Control-Allow-Origin': '*',
     // },
     proxy: {
-     /* '/api': {
-        target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
-        ws: false,
-        changeOrigin: true,
-        pathRewrite: {
-          '/jeecg-boot': ''  //默认所有请求都加了jeecg-boot前缀,需要去掉
-        }
-      },*/
-      /* 注意:jeecgboot前端做了改造,此处不需要配置跨域和后台接口(只需要改.env相关配置文件即可)
-          issues/3462 很多人此处做了配置,导致刷新前端404问题,请一定注意*/
+     // /* '/api': {
+     //    target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
+     //    ws: false,
+     //    changeOrigin: true,
+     //    pathRewrite: {
+     //      '/jeecg-boot': ''  //默认所有请求都加了jeecg-boot前缀,需要去掉
+     //    }
+     //  },*/
+     //  /* 注意:jeecgboot前端做了改造,此处不需要配置跨域和后台接口(只需要改.env相关配置文件即可)
+     //      issues/3462 很多人此处做了配置,导致刷新前端404问题,请一定注意*/
       '/jeecg-boot': {
-        target: 'http://localhost:8080',
+        target: 'http://localhost:8888',
         ws: false,
         changeOrigin: true
       },