Merge branch 'ui' of git.backyard.segmentfault.com:opensource/answer into ui

This commit is contained in:
haitao(lj) 2022-09-28 15:23:43 +08:00
commit b5f923a79f
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ export const useQueryNotificationRedDot = () => {
return useSWR<{ inbox: number; achievement: number }>(
isLogin() ? apiUrl : null,
request.instance.get,
{
refreshInterval: 3000,
},
);
};