Merge pull request #3165 from xinnan-tech/fix-chat-total

fix: 修复聊天记录左侧会话数量统计
This commit is contained in:
wengzh
2026-05-09 15:56:05 +08:00
committed by GitHub
@@ -267,6 +267,13 @@ export default {
if (this.messages.length > 0 && this.messages[0].macAddress) {
this.currentMacAddress = this.messages[0].macAddress;
}
// 更新会话列表中的聊天记录数量
this.sessions = this.sessions.map(item => {
if (item.sessionId === session.sessionId) {
item.chatCount = this.messages.length;
}
return item;
})
}
});
},