兼容水印数据

This commit is contained in:
北枳 2025-10-13 19:28:52 +08:00
parent 1ccb69e747
commit 73727c2c0c

View File

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