diff --git a/src/views/email-recompose/index.vue b/src/views/email-recompose/index.vue index 29f809a9..49e12126 100644 --- a/src/views/email-recompose/index.vue +++ b/src/views/email-recompose/index.vue @@ -180,9 +180,9 @@ export default { this.$i18n.locale = this.$route.query.lang this.setLanguage(this.$route.query.lang) this.$updateDictionary() - if (!this.password.NewUserName) { - this.$alert(this.$t('recompose:message:warning')) - } + // if (!this.password.NewUserName) { + // this.$alert(this.$t('recompose:message:warning')) + // } }, methods: { ...mapMutations({ setLanguage: 'lang/setLanguage' }), @@ -194,8 +194,10 @@ export default { } else { this.$router.push(`/login`) } - this.$i18n.locale = 'zh' - this.setLanguage('zh') + if (!this.$i18n.locale) { + this.$i18n.locale = 'zh' + this.setLanguage('zh') + } this.$updateDictionary() }, save() { diff --git a/src/views/error.vue b/src/views/error.vue index db3aa915..47389a41 100644 --- a/src/views/error.vue +++ b/src/views/error.vue @@ -2,7 +2,8 @@