修改页面分页情况
This commit is contained in:
@@ -27,7 +27,8 @@ const NotificationPopup: React.FC = () => {
|
||||
|
||||
const fetchNotifications = useCallback(async () => {
|
||||
try {
|
||||
const data = await getNotifications();
|
||||
const result = await getNotifications();
|
||||
const data = result.items || [];
|
||||
const unread = data.filter((n: Notification) => !n.isRead);
|
||||
setNotifications(unread);
|
||||
if (unread.length > 0 && !visible) {
|
||||
|
||||
Reference in New Issue
Block a user