路径优化
This commit is contained in:
@@ -513,7 +513,7 @@ const loadLastTask = async () => {
|
|||||||
currentTaskId.value = lastTaskId
|
currentTaskId.value = lastTaskId
|
||||||
|
|
||||||
// 如果任务是成功状态,显示结果
|
// 如果任务是成功状态,显示结果
|
||||||
if (task.status === 'SUCCESS' && task.resultVideoUrl) {
|
if (task.status === 'SUCCESS' && task.videoUrl) {
|
||||||
previewVideoUrl.value = task.videoUrl
|
previewVideoUrl.value = task.videoUrl
|
||||||
currentTaskStatus.value = 'SUCCESS'
|
currentTaskStatus.value = 'SUCCESS'
|
||||||
message.success('已自动加载最近一次任务结果')
|
message.success('已自动加载最近一次任务结果')
|
||||||
@@ -556,7 +556,7 @@ const startPollingTask = () => {
|
|||||||
if (task.status === 'SUCCESS') {
|
if (task.status === 'SUCCESS') {
|
||||||
clearInterval(pollingInterval.value)
|
clearInterval(pollingInterval.value)
|
||||||
pollingInterval.value = null
|
pollingInterval.value = null
|
||||||
previewVideoUrl.value = task.resultVideoUrl
|
previewVideoUrl.value = task.videoUrl
|
||||||
isGenerating.value = false
|
isGenerating.value = false
|
||||||
currentTaskStatus.value = 'SUCCESS'
|
currentTaskStatus.value = 'SUCCESS'
|
||||||
// 保存成功的任务ID
|
// 保存成功的任务ID
|
||||||
|
|||||||
Reference in New Issue
Block a user