diff --git a/.env.usa b/.env.usa index cd4f5b4..6da5fb1 100644 --- a/.env.usa +++ b/.env.usa @@ -2,7 +2,7 @@ ENV = 'usa' NODE_ENV = 'usa' # base public path -VUE_APP_BASE_PATH = '/' +VUE_APP_BASE_PATH = 'https://ei-code-prod.s3.amazonaws.com/hir/2024-06-17/' # 是否开启登陆限制 true:是 false:否 VUE_APP_LOGIN_FOR_PERMISSION = false diff --git a/src/App.vue b/src/App.vue index 60d0099..1932969 100644 --- a/src/App.vue +++ b/src/App.vue @@ -104,7 +104,7 @@ export default { }, mounted() { // this.show = process.env.VUE_APP_OSS_PATH === "/hir_test/dist"; - this.show = true; + this.show = false; }, methods: { changeValue(target, attr, e) { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 05f44b1..bde17a3 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -204,21 +204,21 @@ export default { this.location = this.$route.query.location; zzSessionStorage.setItem("loginType", this.loginType); localStorage.setItem("location", this.location); - if (process.env.VUE_APP_OSS_CONFIG_REGION === "oss-us-west-1") { - this.$i18n.locale = "en"; - this.setLanguage("en"); - this.$updateDictionary(); - } else { - if (this.location === "USA") { - this.$i18n.locale = "en"; - this.setLanguage("en"); - this.$updateDictionary(); - } else { - this.$i18n.locale = "zh"; - this.setLanguage("zh"); - this.$updateDictionary(); - } - } + // if (process.env.VUE_APP_OSS_CONFIG_REGION === "oss-us-west-1") { + // this.$i18n.locale = "en"; + // this.setLanguage("en"); + // this.$updateDictionary(); + // } else { + // if (this.location === "USA") { + // this.$i18n.locale = "en"; + // this.setLanguage("en"); + // this.$updateDictionary(); + // } else { + this.$i18n.locale = "zh"; + this.setLanguage("zh"); + this.$updateDictionary(); + // } + // } }, methods: { ...mapMutations({ setLanguage: "lang/setLanguage" }),