From ec538fb57d7490cce8afb468386ca28b87c8be86 Mon Sep 17 00:00:00 2001 From: shiyiya Date: Sat, 21 Sep 2024 12:03:44 +0800 Subject: [PATCH] --- packages/index/src/components/rank-list/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/index/src/components/rank-list/index.tsx b/packages/index/src/components/rank-list/index.tsx index 3661cd8..3f7934c 100644 --- a/packages/index/src/components/rank-list/index.tsx +++ b/packages/index/src/components/rank-list/index.tsx @@ -6,12 +6,12 @@ import classNames from 'classnames' import { cliclisAdapter } from '../../enime.adp' export default function RankList() { - const [day, setDay] = useState(3) + const [day, setDay] = useState(90) const [list, setList] = useState() useEffect(() => { corsAxios.get(`/rank?day=${day}`).then((rsp) => { - setList(cliclisAdapter(rsp.posts)) + setList(cliclisAdapter(rsp.posts) || []) }) }, [day]) @@ -21,7 +21,7 @@ export default function RankList() { {[3, 7, 30, 90, 365].map((n) => ( {