fix: 修复 remeasure 依赖数组缺少 pageType

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-08 19:34:59 +08:00
parent a8c8fe4211
commit 641514bbfd

View File

@@ -183,7 +183,7 @@ export const useFirstScreenMetrics = (
setIsLoading(false);
}
}, 1000); // 延迟 1 秒收集
}, [collectAllMetrics, trackFirstScreenInteractive, enableConsoleLog]);
}, [pageType, collectAllMetrics, trackFirstScreenInteractive, enableConsoleLog]);
/**
* 导出指标为 JSON