粗剪精剪任意有数据就完成

This commit is contained in:
北枳 2025-08-29 09:39:16 +08:00
parent 41530410e8
commit 0d59fd1bbb
2 changed files with 4 additions and 1 deletions

View File

@ -300,7 +300,7 @@ export const MediaViewer = React.memo(function MediaViewer({
return (
<div
className="relative w-full h-full rounded-lg overflow-hidden"
key={`render-video-${taskObject.final.note}`}
key={`render-video-${taskObject.final.url}`}
>
<div className="relative w-full h-full group">
{/* 背景模糊的视频 */}

View File

@ -292,6 +292,7 @@ export function useWorkflowData() {
taskCurrent.currentStage = 'final_video';
taskCurrent.final.url = task.task_result.video;
taskCurrent.final.note = 'simple';
taskCurrent.status = 'COMPLETED';
}
}
@ -464,12 +465,14 @@ export function useWorkflowData() {
taskCurrent.currentStage = 'final_video';
taskCurrent.final.url = data.final_simple_video.video;
taskCurrent.final.note = 'simple';
taskCurrent.status = 'COMPLETED';
}
if (data.final_video && data.final_video.video) {
taskCurrent.currentStage = 'final_video';
taskCurrent.final.url = data.final_video.video;
taskCurrent.final.note = 'final';
taskCurrent.status = 'COMPLETED';
}
}