fix: loop node snapshot & infinite reload (#3349)

This commit is contained in:
heheer
2024-12-09 18:18:33 +08:00
committed by GitHub
parent 1a294c1fd3
commit c64d629a6a
5 changed files with 84 additions and 81 deletions

View File

@@ -34,7 +34,7 @@ export const useI18nLng = () => {
const currentLng = i18n?.language;
await i18n?.changeLanguage?.(lang);
if (currentLng !== lang) {
if (currentLng !== lang && currentLng) {
window?.location?.reload?.();
}
};