兼容 自动剪辑按钮 显示

This commit is contained in:
北枳 2025-09-08 21:52:42 +08:00
parent 60b723bffb
commit 8b3228ead3
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -96,7 +96,7 @@ export const AIEditingIframe = React.forwardRef<AIEditingIframeHandle, AIEditing
console.log('cutUrl', cutUrl);
// 构建智能剪辑URL
const aiEditingUrl = `${cutUrl}/ai-editor/${projectId}?token=${token}&user_id=${userId}&embedded=true`;
const aiEditingUrl = `${cutUrl}/ai-editor/${projectId}?token=${token}&user_id=${userId}&embedded=true&auto=true`;
/**
* iframe消息

View File

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