2
0

feat:仪表盘数据中英修复(暂时刷新界面处理)

This commit is contained in:
zhongzm
2025-02-13 15:34:24 +08:00
parent de502c4806
commit c836ede0b2

View File

@@ -58,9 +58,15 @@ export const useAppStore = defineStore(SetupStoreId.App, () => {
];
function changeLocale(lang: App.I18n.LangType) {
if (locale.value === lang) return;
locale.value = lang;
setLocale(lang);
localStg.set('lang', lang);
setTimeout(() => {
window.location.reload();
}, 100);
}
/** Update document title by locale */