Browse Source

fix: fix useRequest error

pull/8731/head
chenshuai2144 5 years ago
parent
commit
12cf2f9a62
  1. 2
      src/components/NoticeIcon/index.tsx

2
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 || []);

Loading…
Cancel
Save