修复 失败分镜过多 仍然触发自动剪辑

This commit is contained in:
北枳 2025-09-08 15:15:24 +08:00
parent 9a77f6a14d
commit 003055a6a2
2 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ const WorkFlow = React.memo(function WorkFlow() {
showGotoCutButton,
generateEditPlan,
handleRetryVideo,
isShowError
isShowAutoEditing
} = useWorkflowData({
onEditPlanGenerated: handleEditPlanGenerated
});
@ -261,7 +261,7 @@ const WorkFlow = React.memo(function WorkFlow() {
{/* AI剪辑按钮 - 当可以跳转剪辑时显示 */}
{
showGotoCutButton && !isShowError && (
isShowAutoEditing && (
<div className="fixed right-[2rem] top-[8rem] z-[49]">
<Tooltip title="AI智能剪辑" placement="left">
<AIEditingIframeButton

View File

@ -752,6 +752,6 @@ export function useWorkflowData({ onEditPlanGenerated }: UseWorkflowDataProps =
showGotoCutButton: (canGoToCut && (isGenerateEditPlan || taskObject.currentStage === 'final_video') || isShowError) ? true : false,
generateEditPlan: openEditPlan,
handleRetryVideo,
isShowError
isShowAutoEditing: canGoToCut && taskObject.currentStage === 'video' && !isShowError
};
}