mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
fix: 修复聊天记录左侧会话数量统计
This commit is contained in:
@@ -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;
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user