forked from 77media/video-flow
isShowError
This commit is contained in:
parent
53a187f7c4
commit
9a77f6a14d
@ -95,7 +95,8 @@ const WorkFlow = React.memo(function WorkFlow() {
|
||||
originalText,
|
||||
showGotoCutButton,
|
||||
generateEditPlan,
|
||||
handleRetryVideo
|
||||
handleRetryVideo,
|
||||
isShowError
|
||||
} = useWorkflowData({
|
||||
onEditPlanGenerated: handleEditPlanGenerated
|
||||
});
|
||||
@ -260,7 +261,7 @@ const WorkFlow = React.memo(function WorkFlow() {
|
||||
|
||||
{/* AI剪辑按钮 - 当可以跳转剪辑时显示 */}
|
||||
{
|
||||
showGotoCutButton && (
|
||||
showGotoCutButton && !isShowError && (
|
||||
<div className="fixed right-[2rem] top-[8rem] z-[49]">
|
||||
<Tooltip title="AI智能剪辑" placement="left">
|
||||
<AIEditingIframeButton
|
||||
|
||||
@ -751,6 +751,7 @@ export function useWorkflowData({ onEditPlanGenerated }: UseWorkflowDataProps =
|
||||
originalText: state.originalText,
|
||||
showGotoCutButton: (canGoToCut && (isGenerateEditPlan || taskObject.currentStage === 'final_video') || isShowError) ? true : false,
|
||||
generateEditPlan: openEditPlan,
|
||||
handleRetryVideo
|
||||
handleRetryVideo,
|
||||
isShowError
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user