美国环境发布版本
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
656ebeb3e9
commit
f68c4eca6b
2
.env.usa
2
.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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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" }),
|
||||
|
|
Loading…
Reference in New Issue