From 4134d43d68a9ab4c4d544304329ed5b242952a30 Mon Sep 17 00:00:00 2001 From: wyx Date: Mon, 27 Feb 2023 15:41:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=9B=B4=E6=92=AD=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddLive.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/drawers/AddLive.vue b/src/components/drawers/AddLive.vue index 0f01aba5..a9a1a555 100644 --- a/src/components/drawers/AddLive.vue +++ b/src/components/drawers/AddLive.vue @@ -258,6 +258,7 @@ const formData = ref({ assessmentId: "", assessmentName: "", livePlayback: "", + liveExplain: "" }); const emit = defineEmits({}); const taskIndex = ref(-1); @@ -375,9 +376,9 @@ async function confirm() { } else { const data = props.taskList[taskIndex.value]; data.name = formData.value.liveName; - data.info = formData.value; + data.info = {...formData.value}; data.duration = dayjs(formData.value.liveEndTime).diff(formData.value.liveStartTime, 'minutes') - + console.log(data) } emit("update:taskList", [...props.taskList]); closeDrawer();