bugfix: 卡片传值

This commit is contained in:
2026-03-24 13:59:16 +08:00
parent 21a0acfff9
commit 86911e5f6b
5 changed files with 10 additions and 12 deletions

View File

@@ -580,7 +580,10 @@
// 找到每个 sessionId 对应的最后一项插入sketch卡片
const sessionLastIndexMap = new Map<string, number>()
ancestorsList.forEach((item, index) => {
sessionLastIndexMap.set(item.sessionId, index)
console.log('item', item)
if (item.image_url) {
sessionLastIndexMap.set(item.sessionId, index)
}
})
sessionLastIndexMap.forEach((lastIndex) => {
ancestorsList[lastIndex].text += '<slot slot-name="sketch"></slot>'