feat(仪表盘): 添加统计API并优化仪表盘组件

This commit is contained in:
zhang1106
2026-03-15 12:19:13 +08:00
parent 7aa09ac9e1
commit a7f051172a
10 changed files with 696 additions and 298 deletions
+5 -3
View File
@@ -5,11 +5,13 @@ const fetcher = url => api.get(url).then(res => res);
export const swrConfig = {
fetcher,
revalidateOnFocus: false,
revalidateOnFocus: true,
revalidateOnReconnect: true,
shouldRetryOnError: false,
dedupingInterval: 5000,
shouldRetryOnError: true,
dedupingInterval: 2000,
errorRetryCount: 2,
refreshInterval: 30000,
refreshWhenHidden: false,
};
export const useSWRConfig = () => {