소스 검색

更改配置地址从localhost改成127.0.0.1

dongjh 3 달 전
부모
커밋
a28f78d3e7
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      .env.development
  2. 1 1
      vue.config.js

+ 1 - 1
.env.development

@@ -1,6 +1,6 @@
 NODE_ENV=development
 # VUE_APP_API_BASE_URL=http://192.168.2.244:8520/jeecg-boot
-VUE_APP_API_BASE_URL=http://localhost:8520/jeecg-boot
+VUE_APP_API_BASE_URL=http://127.0.0.1:8520/jeecg-boot
 VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
 VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
 

+ 1 - 1
vue.config.js

@@ -111,7 +111,7 @@ module.exports = {
       /* 注意:jeecgboot前端做了改造,此处不需要配置跨域和后台接口(只需要改.env相关配置文件即可)
           issues/3462 很多人此处做了配置,导致刷新前端404问题,请一定注意*/
       '/jeecg-boot': {
-        target: 'http://localhost:8520',
+        target: 'http://127.0.0.1:8520',
         ws: false,
         changeOrigin: true
       },