美国环境发布版本
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2024-06-17 12:17:44 +08:00
parent 656ebeb3e9
commit f68c4eca6b
3 changed files with 17 additions and 17 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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 {
// 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" }),