Selaa lähdekoodia

fix: some bug

allen 2 viikkoa sitten
vanhempi
sitoutus
ad77a93086
1 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  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()