Procházet zdrojové kódy

fix: fix useRequest error

chenshuai2144 před 4 roky
rodič
revize
12cf2f9a62
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/components/NoticeIcon/index.tsx

+ 1 - 1
src/components/NoticeIcon/index.tsx

@@ -74,7 +74,7 @@ const NoticeIconView = () => {
   const { initialState } = useModel('@@initialState');
   const { currentUser } = initialState || {};
   const [notices, setNotices] = useState<API.NoticeIconItem[]>([]);
-  const { data } = useRequest(getNotices());
+  const { data } = useRequest(getNotices);
 
   useEffect(() => {
     setNotices(data || []);