feat: 功能
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user