提交 12cf2f9a 编写于 作者: C chenshuai2144

fix: fix useRequest error

上级 64c4f05c
......@@ -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 || []);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册