mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
fix: 修复聊天记录左侧会话数量统计
This commit is contained in:
parent
1e6f0fd1be
commit
95acba1126
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue