forked from 77media/video-flow
兼容水印数据
This commit is contained in:
parent
73727c2c0c
commit
9ba47f26c3
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user