Explorar el Código

fix: fix useRequest error

chenshuai2144 hace 4 años
padre
commit
12cf2f9a62
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 || []);