Merge pull request 'edit 框架设计' (#176) from lyc-dev into main
This commit is contained in:
commit
89e0b2f97c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue