diff --git a/src/layout/SpaceContainer/Sider/MineItem/Locale.tsx b/src/layout/SpaceContainer/Sider/MineItem/Locale.tsx index 1483aa17a..6f0898feb 100644 --- a/src/layout/SpaceContainer/Sider/MineItem/Locale.tsx +++ b/src/layout/SpaceContainer/Sider/MineItem/Locale.tsx @@ -30,9 +30,6 @@ const Locale: React.FC = function () { const localeObj = localeList.find((item) => item.value.toLowerCase() === locale?.toLowerCase()) || localeList.find((item) => item.value?.toLowerCase() === defaultLocale?.toLowerCase()); - if (!odc.appConfig.locale.menu) { - return null; - } return ( = function ({ children, userStore, settingStore }, }); } - menu.push({ - label: , - key: 'locale', - }); + if (odc.appConfig.locale.menu) { + menu.push({ + label: , + key: 'locale', + }); + } + if (settingStore.enablePersonalRecord) { menu.push({ key: 'record',