forked from 77media/video-flow
兼容 自动剪辑按钮 显示
This commit is contained in:
parent
60b723bffb
commit
8b3228ead3
@ -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
|
||||
|
||||
@ -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消息
|
||||
|
||||
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user