diff --git a/src/hooks/useFirstScreenMetrics.ts b/src/hooks/useFirstScreenMetrics.ts index 10dda43b..018af60c 100644 --- a/src/hooks/useFirstScreenMetrics.ts +++ b/src/hooks/useFirstScreenMetrics.ts @@ -183,7 +183,7 @@ export const useFirstScreenMetrics = ( setIsLoading(false); } }, 1000); // 延迟 1 秒收集 - }, [collectAllMetrics, trackFirstScreenInteractive, enableConsoleLog]); + }, [pageType, collectAllMetrics, trackFirstScreenInteractive, enableConsoleLog]); /** * 导出指标为 JSON