feat: 删除sketch

This commit is contained in:
2026-03-11 10:53:25 +08:00
parent c469832dbf
commit bb740dfd2e
5 changed files with 86 additions and 13 deletions

View File

@@ -428,7 +428,6 @@
const setChatInfo = (info) => {
const initialData = agentStore.getInitialProjectData
if (isGenerating.value || initialData) return
console.log('info0----', info)
const data = info.conversation
let project = info.project
@@ -457,7 +456,9 @@
let ancestorsIdCounter = 1
if (ancestors) {
ancestors.forEach((item) => {
imgList = imgList.concat(current.sketchIDAndUrl)
if (item.sketchIDAndUrl) {
imgList = imgList.concat(item.sketchIDAndUrl)
}
const list = processDialogue(item.dialogue, 0, imgList)
// 重新设置 id
list.forEach((el) => {
@@ -467,7 +468,10 @@
})
}
const currentList = processDialogue(current?.dialogue, 0, imgList)
imgList = imgList.concat(current.sketchIDAndUrl)
if (current.sketchIDAndUrl) {
imgList = imgList.concat(current.sketchIDAndUrl)
}
currentList.forEach((el, index) => {
el.id = index + 1 + ancestorsList.length
})