From f68c4eca6b31b26c1291e84be693347ba8e268a1 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 17 Jun 2024 12:17:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=9B=BD=E7=8E=AF=E5=A2=83=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.usa | 2 +- src/App.vue | 2 +- src/views/login/index.vue | 30 +++++++++++++++--------------- 3 files changed, 17 insertions(+), 17 deletions(-) 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" }),