From 554f8096e1f384f14b9424f5142d63f90c72a3eb Mon Sep 17 00:00:00 2001
From: hejianhao <15708179461@qq.com>
Date: 星期一, 19 五月 2025 22:57:46 +0800
Subject: [PATCH] H5接口对接
---
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