Jelajahi Sumber

Merge pull request #1869 from visuddhinanda/agile

add log
visuddhinanda 2 tahun lalu
induk
melakukan
366ce448e1
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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(