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)