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

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

@@ -14,6 +14,7 @@ const NotificationIconWidget = () => {
   useEffect(() => {
   useEffect(() => {
     let timer = setInterval(() => {
     let timer = setInterval(() => {
       if (!user) {
       if (!user) {
+        console.debug("未登录 不查询 notification");
         return;
         return;
       }
       }
       const now = new Date();
       const now = new Date();
@@ -32,7 +33,7 @@ const NotificationIconWidget = () => {
       }
       }
 
 
       const url = `/v2/notification?view=to&status=unread&limit=1`;
       const url = `/v2/notification?view=to&status=unread&limit=1`;
-      console.info("url", url);
+      console.info("notification url", url);
       get<INotificationListResponse>(url).then((json) => {
       get<INotificationListResponse>(url).then((json) => {
         if (json.ok) {
         if (json.ok) {
           localStorage.setItem(
           localStorage.setItem(