2
0
Эх сурвалжийг харах

Merge pull request #1869 from visuddhinanda/agile

add log
visuddhinanda 2 жил өмнө
parent
commit
366ce448e1

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

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