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'; // 停止轮询