From 12cf2f9a62ba782c94c4d4d916129546181b99d7 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Tue, 13 Jul 2021 17:09:24 +0800 Subject: [PATCH] fix: fix useRequest error --- src/components/NoticeIcon/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NoticeIcon/index.tsx b/src/components/NoticeIcon/index.tsx index 72572095..7c4cd29d 100644 --- a/src/components/NoticeIcon/index.tsx +++ b/src/components/NoticeIcon/index.tsx @@ -74,7 +74,7 @@ const NoticeIconView = () => { const { initialState } = useModel('@@initialState'); const { currentUser } = initialState || {}; const [notices, setNotices] = useState([]); - const { data } = useRequest(getNotices()); + const { data } = useRequest(getNotices); useEffect(() => { setNotices(data || []); -- GitLab