feat:仪表盘数据中英修复(暂时刷新界面处理)
This commit is contained in:
@@ -58,9 +58,15 @@ export const useAppStore = defineStore(SetupStoreId.App, () => {
|
|||||||
];
|
];
|
||||||
|
|
||||||
function changeLocale(lang: App.I18n.LangType) {
|
function changeLocale(lang: App.I18n.LangType) {
|
||||||
|
if (locale.value === lang) return;
|
||||||
|
|
||||||
locale.value = lang;
|
locale.value = lang;
|
||||||
setLocale(lang);
|
setLocale(lang);
|
||||||
localStg.set('lang', lang);
|
localStg.set('lang', lang);
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.reload();
|
||||||
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Update document title by locale */
|
/** Update document title by locale */
|
||||||
|
|||||||
Reference in New Issue
Block a user