isShowError

This commit is contained in:
北枳 2025-09-08 15:10:29 +08:00
parent 53a187f7c4
commit 9a77f6a14d
2 changed files with 5 additions and 3 deletions

View File

@ -95,7 +95,8 @@ const WorkFlow = React.memo(function WorkFlow() {
originalText, originalText,
showGotoCutButton, showGotoCutButton,
generateEditPlan, generateEditPlan,
handleRetryVideo handleRetryVideo,
isShowError
} = useWorkflowData({ } = useWorkflowData({
onEditPlanGenerated: handleEditPlanGenerated onEditPlanGenerated: handleEditPlanGenerated
}); });
@ -260,7 +261,7 @@ const WorkFlow = React.memo(function WorkFlow() {
{/* AI剪辑按钮 - 当可以跳转剪辑时显示 */} {/* AI剪辑按钮 - 当可以跳转剪辑时显示 */}
{ {
showGotoCutButton && ( showGotoCutButton && !isShowError && (
<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

View File

@ -751,6 +751,7 @@ export function useWorkflowData({ onEditPlanGenerated }: UseWorkflowDataProps =
originalText: state.originalText, originalText: state.originalText,
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
}; };
} }