mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 03:22:56 +08:00
perf: 优化浏览器默认语言加载机制
This commit is contained in:
parent
d7785230c4
commit
cd265f1d56
@ -64,6 +64,10 @@ export const userStore = defineStore('user', {
|
||||
this[key] = data[dkey]
|
||||
wsCache.set('user.' + key, this[key])
|
||||
})
|
||||
const locale = useLocaleStoreWithOut()
|
||||
if (locale.getCurrentLocale?.lang !== this.language) {
|
||||
window.location.reload()
|
||||
}
|
||||
this.setLanguage(this.language)
|
||||
},
|
||||
setToken(token: string) {
|
||||
|
Loading…
Reference in New Issue
Block a user