diff --git a/pages/campaign/[id]/task.vue b/pages/campaign/[id]/task.vue index ac74f87b..7d341565 100644 --- a/pages/campaign/[id]/task.vue +++ b/pages/campaign/[id]/task.vue @@ -100,14 +100,10 @@ const renderTask = async (): Promise => { const task = { accountId: vAccount.value?.id, campaignId: reservation.value?.campaign_id, - batchId: reservation.value?.batch_id, + batchId: reservation.value?.batch_idx, submissionId: reservation.value?.id, }; - console.log("Reservation", reservation.value) - console.log("Task", task) - console.log("Task Data", taskData.value); - const template = new EffectTemplate( campaign.value.info.template, { id: 1, annotations: [], ...taskData.value }, @@ -156,8 +152,9 @@ const doSubmitTask = async (data: Record): Promise => { watchEffect(async () => { if (!reservation.value || !taskData.value) return; if (error.value) return; - isTemplateReady.value = false; + await nextTick(); + renderTask(); });