From d0f4c2d4bb7a72b32fb9945de8908e1d4ab6509c Mon Sep 17 00:00:00 2001 From: 董国庆 <364620639@qq.com> Date: 星期五, 06 六月 2025 14:13:58 +0800 Subject: [PATCH] 提交 --- management/src/components/RightContent/AvatarDropdown.tsx | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/management/src/components/RightContent/AvatarDropdown.tsx b/management/src/components/RightContent/AvatarDropdown.tsx index 20ae03c..5992bda 100644 --- a/management/src/components/RightContent/AvatarDropdown.tsx +++ b/management/src/components/RightContent/AvatarDropdown.tsx @@ -27,13 +27,13 @@ const [unreadCount, setUnreadCount] = useState(0); const { currentUser } = initialState || {}; useEffect(() => { - const timer = setInterval(() => { - getUnreadCount().then((res: any) => { - setUnreadCount(res.data || 0); - }); - }, 1000 * 5) + // const timer = setInterval(() => { + // getUnreadCount().then((res: any) => { + // setUnreadCount(res.data || 0); + // }); + // }, 1000 * 5) - return () => clearInterval(timer); + // return () => clearInterval(timer); }, []); -- Gitblit v1.7.1