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] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=B0=B4=E5=8D=B0=E6=95=B0?= =?UTF-8?q?=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'; // 停止轮询