Browse Source

获取全部消息中的最新的一个

visuddhinanda 2 years ago
parent
commit
5a0409e8ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dashboard/src/components/notification/NotificationIcon.tsx

+ 1 - 1
dashboard/src/components/notification/NotificationIcon.tsx

@@ -32,7 +32,7 @@ const NotificationIconWidget = () => {
       }
     }
 
-    const url = `/v2/notification?view=to&status=unread&limit=1`;
+    const url = `/v2/notification?view=to&limit=1`;
     console.info("notification url", url);
     get<INotificationListResponse>(url).then((json) => {
       if (json.ok) {