feat: 删除sketch
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user