diff --git a/components/pages/work-flow.tsx b/components/pages/work-flow.tsx index 75ebf81..e3024ee 100644 --- a/components/pages/work-flow.tsx +++ b/components/pages/work-flow.tsx @@ -47,6 +47,7 @@ const WorkFlow = React.memo(function WorkFlow() { const handleEditPlanGenerated = useCallback(() => { console.log('✨ 编辑计划生成完成,开始AI剪辑'); setIsHandleEdit(true); + aiEditingButtonRef.current?.handleAIEditing(); editingNotificationKey.current = `editing-${Date.now()}`; showEditingNotification({ title: '视频编辑中', // 可选 @@ -73,7 +74,6 @@ const WorkFlow = React.memo(function WorkFlow() { }, 3000); } }); - aiEditingButtonRef.current?.handleAIEditing(); }, []); // 使用自定义 hooks 管理状态