diff --git a/src/views/tasklist/components/CreateListModal.vue b/src/views/tasklist/components/CreateListModal.vue index d6f8bde..9a9c9a3 100644 --- a/src/views/tasklist/components/CreateListModal.vue +++ b/src/views/tasklist/components/CreateListModal.vue @@ -30,12 +30,12 @@ try { setModalProps({ confirmLoading: true }); const values = await validate(); - await addTaskList({ + const listId = await addTaskList({ tasklistName: values.tasklistName || values.name, pid: pendingGroupId || undefined, }); closeModal(); - emit('success'); + emit('success', listId); } finally { setModalProps({ confirmLoading: false }); } diff --git a/src/views/tasklist/components/TaskContent.vue b/src/views/tasklist/components/TaskContent.vue index 6509911..9dcef26 100644 --- a/src/views/tasklist/components/TaskContent.vue +++ b/src/views/tasklist/components/TaskContent.vue @@ -8,9 +8,9 @@