diff --git a/ui/src/services/notification.api.ts b/ui/src/services/notification.api.ts index e9659aa7..9ab4e94e 100644 --- a/ui/src/services/notification.api.ts +++ b/ui/src/services/notification.api.ts @@ -36,6 +36,9 @@ export const useQueryNotificationRedDot = () => { return useSWR<{ inbox: number; achievement: number }>( isLogin() ? apiUrl : null, request.instance.get, + { + refreshInterval: 3000, + }, ); };