feat: 功能

This commit is contained in:
2025-11-23 15:03:12 +08:00
parent 5080ce3168
commit 159eb835d6
3 changed files with 95 additions and 47 deletions

View File

@@ -513,8 +513,8 @@ const loadLastTask = async () => {
currentTaskId.value = lastTaskId
// 如果任务是成功状态,显示结果
if (task.status === 'SUCCESS' && task.videoUrl) {
previewVideoUrl.value = task.videoUrl
if (task.status === 'SUCCESS' && task.resultVideoUrl) {
previewVideoUrl.value = task.resultVideoUrl
currentTaskStatus.value = 'SUCCESS'
message.success('已自动加载最近一次任务结果')
} else if (task.status === 'PROCESSING') {
@@ -556,7 +556,7 @@ const startPollingTask = () => {
if (task.status === 'SUCCESS') {
clearInterval(pollingInterval.value)
pollingInterval.value = null
previewVideoUrl.value = task.videoUrl
previewVideoUrl.value = task.resultVideoUrl
isGenerating.value = false
currentTaskStatus.value = 'SUCCESS'
// 保存成功的任务ID