feat(data-process): 完善后台生成与失败重试
This commit is contained in:
@@ -286,7 +286,12 @@ async function loadTask(silent = false) {
|
||||
if (!silent) loading.value = true
|
||||
loadError.value = ''
|
||||
try {
|
||||
detail.value = await getDataProcessTask(taskId.value)
|
||||
const task = await getDataProcessTask(taskId.value)
|
||||
if (task.status !== 'completed' || task.results_confirmed === false) {
|
||||
await router.replace({ name: 'data-process-workflow', params: { id: task.id } })
|
||||
return
|
||||
}
|
||||
detail.value = task
|
||||
} catch {
|
||||
detail.value = null
|
||||
loadError.value = '数据处理任务加载失败,任务可能已删除或当前无权访问。'
|
||||
|
||||
Reference in New Issue
Block a user