feat: auto-refresh rule data when switching to rules page

This commit is contained in:
wonfen
2025-04-24 10:24:29 +08:00
parent 0bb042e085
commit 4d37e6870c
3 changed files with 18 additions and 4 deletions

View File

@@ -117,12 +117,12 @@ export const AppDataProvider = ({ children }: { children: React.ReactNode }) =>
}
);
// 高频率更新数据 (1秒)
// 高频率更新数据 (2秒)
const { data: uptimeData } = useSWR(
"appUptime",
getAppUptime,
{
refreshInterval: 1000,
refreshInterval: 2000,
revalidateOnFocus: false,
suspense: false
}