perf: Div 嵌入式切换语言后会整体刷新页面

This commit is contained in:
fit2cloud-chenyw
2025-12-24 17:21:08 +08:00
committed by fit2cloud-chenyw
parent 62ba3f8746
commit 2e7742b7f1

View File

@@ -65,7 +65,7 @@ export const userStore = defineStore('user', {
wsCache.set('user.' + key, this[key])
})
const locale = useLocaleStoreWithOut()
if (locale.getCurrentLocale?.lang !== this.language) {
if (locale.getCurrentLocale?.lang !== this.language && !window.DataEaseBi) {
window.location.reload()
}
this.setLanguage(this.language)