【中心调研】中文环境登录后,中心调研表是英文的
continuous-integration/drone/push Build is passing Details

rj
wangxiaoshuang 2026-07-02 11:50:02 +08:00
parent a278b032e2
commit 433cfdc123
1 changed files with 12 additions and 2 deletions

View File

@ -357,8 +357,18 @@ export default {
}
verifySendCode(param).then(async res => {
zzSessionStorage.clear()
this.$i18n.locale = this.$route.query.lang
this.setLanguage(this.$route.query.lang)
// this.$i18n.locale = 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)
zzSessionStorage.setItem('TokenKey', res.Result.Token)
zzSessionStorage.setItem('userId', res.Result.UserRoleId);