Merge pull request 'edit' (#220) from lyc-dev into main
This commit is contained in:
commit
e6c2e264d2
|
@ -114,14 +114,17 @@ const createAi = async () => {
|
||||||
|
|
||||||
data = res.data
|
data = res.data
|
||||||
}
|
}
|
||||||
markeDownAnswer.value = data.answer
|
|
||||||
|
|
||||||
const res = await createOutlineV2({ query: data.answer })
|
const res = await createOutlineV2({ query: data.answer })
|
||||||
|
|
||||||
|
markeDownAnswer.value = data.answer
|
||||||
let outline = JSON.stringify({
|
let outline = JSON.stringify({
|
||||||
json: res.outline,
|
json: res.outline,
|
||||||
markdown: data.answer
|
markdown: data.answer
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
Object.assign(curItem, {...curItem, outline})
|
Object.assign(curItem, {...curItem, outline})
|
||||||
|
|
||||||
emitter.emit('onResult', curItem)
|
emitter.emit('onResult', curItem)
|
||||||
|
|
Loading…
Reference in New Issue