From 406e581182a8660e0ffb38042dd8cf7a991b6afa Mon Sep 17 00:00:00 2001 From: lyc Date: Tue, 24 Dec 2024 14:47:58 +0800 Subject: [PATCH] =?UTF-8?q?edit=20=E6=A1=86=E6=9E=B6=E8=AE=BE=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/teachingDesign/container/right.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/views/teachingDesign/container/right.vue b/src/renderer/src/views/teachingDesign/container/right.vue index 67d4dd6..3c91cb6 100644 --- a/src/renderer/src/views/teachingDesign/container/right.vue +++ b/src/renderer/src/views/teachingDesign/container/right.vue @@ -206,7 +206,7 @@ const handleCompleteText = async (answer, index) => { } // 保存模板 -const onSaveTemp = (item) => { +const onSaveTemp = async (item) => { if (item.answer == '') return const data = { @@ -216,7 +216,11 @@ const onSaveTemp = (item) => { content: item.answer, ex1: curNode.id } - tempSave(data).then(res => { }) + const res = await tempSave(data) + + if(!item.resultId){ + item.resultId = res.data + } } const isWordDialog = ref(false)