【中心调研】中文环境登录后,中心调研表是英文的
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
a278b032e2
commit
433cfdc123
|
|
@ -357,8 +357,18 @@ export default {
|
||||||
}
|
}
|
||||||
verifySendCode(param).then(async res => {
|
verifySendCode(param).then(async res => {
|
||||||
zzSessionStorage.clear()
|
zzSessionStorage.clear()
|
||||||
this.$i18n.locale = this.$route.query.lang
|
// this.$i18n.locale = this.$route.query.lang
|
||||||
this.setLanguage(this.$route.query.lang)
|
// this.setLanguage(this.$route.query.lang)
|
||||||
|
let lang = this.$route.query.lang
|
||||||
|
if (!lang) {
|
||||||
|
const language = navigator.language
|
||||||
|
lang = 'en'
|
||||||
|
if (language.includes("zh")) {
|
||||||
|
lang = 'zh'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$i18n.locale = lang
|
||||||
|
this.setLanguage(lang)
|
||||||
store.dispatch('user/setToken', res.Result.Token)
|
store.dispatch('user/setToken', res.Result.Token)
|
||||||
zzSessionStorage.setItem('TokenKey', res.Result.Token)
|
zzSessionStorage.setItem('TokenKey', res.Result.Token)
|
||||||
zzSessionStorage.setItem('userId', res.Result.UserRoleId);
|
zzSessionStorage.setItem('userId', res.Result.UserRoleId);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue