Ver código fonte

切换语言刷新

david 2 anos atrás
pai
commit
8a4777aee9
3 arquivos alterados com 6 adições e 3 exclusões
  1. 2 2
      .env.development
  2. 3 0
      src/components/LangSelect/index.vue
  3. 1 1
      vue.config.js

+ 2 - 2
.env.development

@@ -2,11 +2,11 @@
 ENV='development'
 
 # api请求地址
-VUE_APP_BASE_API='http://172.25.123.82:9970'
+VUE_APP_BASE_API='http://172.17.133.86:9970'
 # 文件下载地址
 VUE_APP_BASE_DO_API='http://local.ng.backend.api.com'
 # CDN文件地址
-VUE_APP_CDN_API='http://172.25.123.82:9970'
+VUE_APP_CDN_API='http://172.17.133.86:9970'
 # 页面地址
 VUE_APP_BASE_WEBSITE='http://local.ng.backend.ele.com'
 # 会员端地址

+ 3 - 0
src/components/LangSelect/index.vue

@@ -35,6 +35,9 @@ export default {
         message: this.$t('common.switchLanguageHints'),
         type: 'success'
       })
+      setTimeout(function(){
+        location.reload();
+      },1000);
     }
   }
 }

+ 1 - 1
vue.config.js

@@ -39,7 +39,7 @@ module.exports = {
     },
     proxy: {
       [process.env.VUE_APP_BASE_API]:{
-        target:"http://172.25.123.82:9970",
+        target:"http://172.17.133.86:9970",
         changeOrigin:true,
         pathRewrite:{
           ["^" + process.env.VUE_APP_BASE_API] : ""