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,
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

View File

@ -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
};
}