bugfix: 卡片传值
This commit is contained in:
@@ -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>'
|
||||
|
||||
Reference in New Issue
Block a user