登陆页面国际化
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
73e0a13e91
commit
823ac2f085
|
@ -328,6 +328,7 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
let lang = zzSessionStorage.getItem('lang') || 'zh'
|
||||||
zzSessionStorage.clear()
|
zzSessionStorage.clear()
|
||||||
this.loginType = this.$route.query.loginType
|
this.loginType = this.$route.query.loginType
|
||||||
this.location = this.$route.query.location
|
this.location = this.$route.query.location
|
||||||
|
@ -343,8 +344,8 @@ export default {
|
||||||
this.setLanguage('en')
|
this.setLanguage('en')
|
||||||
this.$updateDictionary()
|
this.$updateDictionary()
|
||||||
} else {
|
} else {
|
||||||
this.$i18n.locale = 'zh'
|
this.$i18n.locale = lang
|
||||||
this.setLanguage('zh')
|
this.setLanguage(lang)
|
||||||
this.$updateDictionary()
|
this.$updateDictionary()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -388,8 +389,8 @@ export default {
|
||||||
.dispatch('user/login', this.loginForm)
|
.dispatch('user/login', this.loginForm)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.BasicInfo.LoginState === 2) {
|
if (res.BasicInfo.LoginState === 2) {
|
||||||
this.$message.warning(this.$t('login:message:login4'))
|
this.$message.warning(this.$t('login:message:login4'))
|
||||||
}
|
}
|
||||||
if (res.BasicInfo.IsFirstAdd) {
|
if (res.BasicInfo.IsFirstAdd) {
|
||||||
// 当前用户为首次登录,请先修改密码之后再次登录
|
// 当前用户为首次登录,请先修改密码之后再次登录
|
||||||
this.$message.success(this.$t('login:message:login1'))
|
this.$message.success(this.$t('login:message:login1'))
|
||||||
|
|
Loading…
Reference in New Issue