This commit is contained in:
truewhile
2026-09-04 11:56:29 +08:00
parent cc40169616
commit 203abd106a
72 changed files with 1979 additions and 1155 deletions
+4 -1
View File
@@ -31,7 +31,10 @@ export function AdminUsersPanel() {
}
useEffect(() => {
refresh().catch(() => undefined)
const timer = window.setInterval(() => refresh().catch(() => undefined), 10000)
const timer = window.setInterval(() => {
if (document.hidden) return
refresh().catch(() => undefined)
}, 10000)
return () => window.clearInterval(timer)
}, [])