This commit is contained in:
北枳 2025-09-04 21:36:59 +08:00
parent ce0c0dfe7c
commit f12505eae4

View File

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