Ver código fonte

地址改回localhost

yuhan 1 ano atrás
pai
commit
ec7cf0f6d9
3 arquivos alterados com 6 adições e 6 exclusões
  1. 2 2
      .env.development
  2. 2 2
      .env.production
  3. 2 2
      vue.config.js

+ 2 - 2
.env.development

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

+ 2 - 2
.env.production

@@ -1,5 +1,5 @@
 NODE_ENV=production
-VUE_APP_API_BASE_URL=http://10.67.0.64:8888/jeecg-boot
-# VUE_APP_API_BASE_URL=http://localhost:8888/jeecg-boot
+# VUE_APP_API_BASE_URL=http://10.67.0.64:8888/jeecg-boot
+VUE_APP_API_BASE_URL=http://localhost:8888/jeecg-boot
 VUE_APP_CAS_BASE_URL=http://localhost:8888/cas
 VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview

+ 2 - 2
vue.config.js

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