mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-28 01:53:53 +08:00
Merge pull request #3165 from xinnan-tech/fix-chat-total
fix: 修复聊天记录左侧会话数量统计
This commit is contained in:
@@ -267,6 +267,13 @@ export default {
|
|||||||
if (this.messages.length > 0 && this.messages[0].macAddress) {
|
if (this.messages.length > 0 && this.messages[0].macAddress) {
|
||||||
this.currentMacAddress = 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