Parcourir la source

fix: some bug

allen il y a 2 semaines
Parent
commit
ad77a93086
1 fichiers modifiés avec 6 ajouts et 4 suppressions
  1. 6 4
      src/views/task/amplify/index.vue

+ 6 - 4
src/views/task/amplify/index.vue

@@ -494,11 +494,13 @@ onMounted(() => {
       })
     }
   })
+  if (subTaskId) {
+    getSubtaskApi(subTaskId).then(res => {
+      taskType.value = res.data.type
+      taskStatus.value = res.data.status
+    })
+  }
 
-  getSubtaskApi(subTaskId).then(res => {
-    taskType.value = res.data.type
-    taskStatus.value = res.data.status
-  })
   refreshList()
   timer.value = setInterval(() => {
     refreshList()