fix: 用户批量导入国际化错误

This commit is contained in:
fit2cloud-chenyw
2023-12-18 14:09:41 +08:00
parent 61b40e57a3
commit eeee99be12
2 changed files with 4 additions and 1 deletions

View File

@@ -85,6 +85,9 @@ export const userStore = defineStore('user', {
this.oid = oid
},
setLanguage(language: string) {
if (!language || language === 'zh_CN') {
language = 'zh-CN'
}
wsCache.set('user.language', language)
this.language = language
locale.setLang(language)