From 73727c2c0cb30f11447782c9605c7ca5ff37a21a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Mon, 13 Oct 2025 19:28:52 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=B0=B4=E5=8D=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/use-workflow-data.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index d58bc46..c467aa3 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -324,7 +324,10 @@ export function useWorkflowData({}: UseWorkflowDataProps = {}) { if (task.task_name === 'watermark_videos') { if (task.task_status === 'COMPLETED') { taskCurrent.currentStage = 'final_video'; - taskCurrent.final.url = task.task_result.video_url.result.watermarked_url || task.task_result.video_url; + const videoUrl = task.task_result.video_url; + taskCurrent.final.url = typeof videoUrl === 'object' + ? videoUrl.result?.watermarked_url + : videoUrl; taskCurrent.final.note = 'watermark'; taskCurrent.status = 'COMPLETED'; // 停止轮询 From 9ba47f26c39e28bb028aa33785220f3a4817623d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Mon, 13 Oct 2025 19:31:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=B0=B4=E5=8D=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/use-workflow-data.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index c467aa3..e132f79 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -325,7 +325,7 @@ export function useWorkflowData({}: UseWorkflowDataProps = {}) { if (task.task_status === 'COMPLETED') { taskCurrent.currentStage = 'final_video'; const videoUrl = task.task_result.video_url; - taskCurrent.final.url = typeof videoUrl === 'object' + taskCurrent.final.url = (videoUrl && typeof videoUrl === 'object') ? videoUrl.result?.watermarked_url : videoUrl; taskCurrent.final.note = 'watermark'; From 5b6e4d0970adb127b562f61cbc9fe89d79f2dcf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Mon, 13 Oct 2025 20:05:09 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/media-viewer.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/pages/work-flow/media-viewer.tsx b/components/pages/work-flow/media-viewer.tsx index d6ef89a..dea189f 100644 --- a/components/pages/work-flow/media-viewer.tsx +++ b/components/pages/work-flow/media-viewer.tsx @@ -461,6 +461,9 @@ export const MediaViewer = React.memo(function MediaViewer({ className="relative w-full h-full rounded-lg overflow-hidden" key={`render-video-${taskObject.final.url}`} ref={videoContentRef} + style={{ + minWidth: placeholderWidth + }} >