chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -24,7 +24,7 @@ import {
export interface ReportTtiParams {
isLive: boolean;
extra?: Record<string, string>;
scene?: string; // 一个页面默认只上报一次tti设置不同的scene可上报多次
scene?: string; // A page only reports tti once by default, and different scenes can be reported multiple times.
}
export const useReportTti = ({
@@ -34,8 +34,8 @@ export const useReportTti = ({
}: ReportTtiParams) => {
useEffect(() => {
if (isLive) {
// TODO useEffect 与真实 DOM 渲染之间会有 gap需要考虑如何抹平差异
// settimeout 在网页后台会挂起,导致 TTI 严重不准
// There will be a gap between TODO useEffect and real DOM rendering, you need to consider how to smooth the difference
// SetTimeout hangs in the background of the page, causing TTI to be severely inaccurate
reportTti(extra, scene);
}
}, [isLive]);