diff --git a/apps/web/src/pages/generate/components/PreviewVideoPanel.tsx b/apps/web/src/pages/generate/components/PreviewVideoPanel.tsx index 04e6a66f0..95ad61409 100644 --- a/apps/web/src/pages/generate/components/PreviewVideoPanel.tsx +++ b/apps/web/src/pages/generate/components/PreviewVideoPanel.tsx @@ -268,6 +268,7 @@ export const PreviewVideoPanel: React.FC = ({ }, [showTitlePreview, hasPreview, isError, drawNoVideoTitle]) // 字体加载检测:当字体变更时重新检测,确保 measureText 使用正确字体计算 + // eslint-disable-next-line react-hooks/exhaustive-deps -- drawVideoTitle/drawNoVideoTitle 在字体加载回调中显式调用以避免循环依赖 useEffect(() => { if (!showTitlePreview || !titleSettings) { setFontLoaded(false)