forked from 77media/video-flow
修复 失败分镜过多 仍然触发自动剪辑
This commit is contained in:
parent
9a77f6a14d
commit
003055a6a2
@ -96,7 +96,7 @@ const WorkFlow = React.memo(function WorkFlow() {
|
|||||||
showGotoCutButton,
|
showGotoCutButton,
|
||||||
generateEditPlan,
|
generateEditPlan,
|
||||||
handleRetryVideo,
|
handleRetryVideo,
|
||||||
isShowError
|
isShowAutoEditing
|
||||||
} = useWorkflowData({
|
} = useWorkflowData({
|
||||||
onEditPlanGenerated: handleEditPlanGenerated
|
onEditPlanGenerated: handleEditPlanGenerated
|
||||||
});
|
});
|
||||||
@ -261,7 +261,7 @@ const WorkFlow = React.memo(function WorkFlow() {
|
|||||||
|
|
||||||
{/* AI剪辑按钮 - 当可以跳转剪辑时显示 */}
|
{/* AI剪辑按钮 - 当可以跳转剪辑时显示 */}
|
||||||
{
|
{
|
||||||
showGotoCutButton && !isShowError && (
|
isShowAutoEditing && (
|
||||||
<div className="fixed right-[2rem] top-[8rem] z-[49]">
|
<div className="fixed right-[2rem] top-[8rem] z-[49]">
|
||||||
<Tooltip title="AI智能剪辑" placement="left">
|
<Tooltip title="AI智能剪辑" placement="left">
|
||||||
<AIEditingIframeButton
|
<AIEditingIframeButton
|
||||||
|
|||||||
@ -752,6 +752,6 @@ export function useWorkflowData({ onEditPlanGenerated }: UseWorkflowDataProps =
|
|||||||
showGotoCutButton: (canGoToCut && (isGenerateEditPlan || taskObject.currentStage === 'final_video') || isShowError) ? true : false,
|
showGotoCutButton: (canGoToCut && (isGenerateEditPlan || taskObject.currentStage === 'final_video') || isShowError) ? true : false,
|
||||||
generateEditPlan: openEditPlan,
|
generateEditPlan: openEditPlan,
|
||||||
handleRetryVideo,
|
handleRetryVideo,
|
||||||
isShowError
|
isShowAutoEditing: canGoToCut && taskObject.currentStage === 'video' && !isShowError
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user