perf: optimize CPU and memory usage of homepage traffic chart

This commit is contained in:
wonfen
2025-03-16 14:34:29 +08:00
parent e0e1a05448
commit 16d5077f55
4 changed files with 130 additions and 67 deletions

View File

@@ -10,7 +10,7 @@ export const useCurrentProxy = () => {
"getProxies",
getProxies,
{
refreshInterval: 3000,
refreshInterval: 2000,
revalidateOnFocus: false,
revalidateOnReconnect: true,
},