visuddhinanda 2 년 전
부모
커밋
bbc712c846
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      dashboard/src/components/notification/NotificationIcon.tsx

+ 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(