mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
fix: loop node snapshot & infinite reload (#3349)
This commit is contained in:
@@ -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?.();
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user