fix: 修复聊天记录左侧会话数量统计

This commit is contained in:
zhuoqinglian
2026-05-09 15:54:53 +08:00
parent 1e6f0fd1be
commit 95acba1126
@@ -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;
})
}
});
},