diff --git a/src/pages/recommendSheets/components/body/index.tsx b/src/pages/recommendSheets/components/body/index.tsx index f8dd0114..80636fdd 100644 --- a/src/pages/recommendSheets/components/body/index.tsx +++ b/src/pages/recommendSheets/components/body/index.tsx @@ -6,6 +6,7 @@ import PluginManager from '@/core/pluginManager'; import {fontWeightConst} from '@/constants/uiConst'; import SheetBody from './sheetBody'; import useColors from '@/hooks/useColors'; +import Empty from '@/components/base/empty'; export default function Body() { const [index, setIndex] = useState(0); @@ -53,6 +54,9 @@ export default function Body() { /> ); + if (!routes?.length) { + return ; + } return ( ({ @@ -21,6 +22,9 @@ export default function TopListBody() { ), [], ); + if (!routes?.length) { + return ; + } return (