兼容水印数据

This commit is contained in:
北枳 2025-10-13 19:31:45 +08:00
parent 73727c2c0c
commit 9ba47f26c3

View File

@ -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';