美国环境发布版本
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'
|
ENV = 'usa'
|
||||||
NODE_ENV = 'usa'
|
NODE_ENV = 'usa'
|
||||||
# base public path
|
# base public path
|
||||||
VUE_APP_BASE_PATH = '/'
|
VUE_APP_BASE_PATH = 'https://ei-code-prod.s3.amazonaws.com/hir/2024-06-17/'
|
||||||
|
|
||||||
# 是否开启登陆限制 true:是 false:否
|
# 是否开启登陆限制 true:是 false:否
|
||||||
VUE_APP_LOGIN_FOR_PERMISSION = false
|
VUE_APP_LOGIN_FOR_PERMISSION = false
|
||||||
|
|
|
@ -104,7 +104,7 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// this.show = process.env.VUE_APP_OSS_PATH === "/hir_test/dist";
|
// this.show = process.env.VUE_APP_OSS_PATH === "/hir_test/dist";
|
||||||
this.show = true;
|
this.show = false;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeValue(target, attr, e) {
|
changeValue(target, attr, e) {
|
||||||
|
|
|
@ -204,21 +204,21 @@ export default {
|
||||||
this.location = this.$route.query.location;
|
this.location = this.$route.query.location;
|
||||||
zzSessionStorage.setItem("loginType", this.loginType);
|
zzSessionStorage.setItem("loginType", this.loginType);
|
||||||
localStorage.setItem("location", this.location);
|
localStorage.setItem("location", this.location);
|
||||||
if (process.env.VUE_APP_OSS_CONFIG_REGION === "oss-us-west-1") {
|
// if (process.env.VUE_APP_OSS_CONFIG_REGION === "oss-us-west-1") {
|
||||||
this.$i18n.locale = "en";
|
// this.$i18n.locale = "en";
|
||||||
this.setLanguage("en");
|
// this.setLanguage("en");
|
||||||
this.$updateDictionary();
|
// this.$updateDictionary();
|
||||||
} else {
|
// } else {
|
||||||
if (this.location === "USA") {
|
// if (this.location === "USA") {
|
||||||
this.$i18n.locale = "en";
|
// this.$i18n.locale = "en";
|
||||||
this.setLanguage("en");
|
// this.setLanguage("en");
|
||||||
this.$updateDictionary();
|
// this.$updateDictionary();
|
||||||
} else {
|
// } else {
|
||||||
this.$i18n.locale = "zh";
|
this.$i18n.locale = "zh";
|
||||||
this.setLanguage("zh");
|
this.setLanguage("zh");
|
||||||
this.$updateDictionary();
|
this.$updateDictionary();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations({ setLanguage: "lang/setLanguage" }),
|
...mapMutations({ setLanguage: "lang/setLanguage" }),
|
||||||
|
|
Loading…
Reference in New Issue