perf: 优化未读消息数

This commit is contained in:
kuaifan 2025-03-18 18:48:27 +08:00
parent c64c436b9f
commit 4c282962b3

View File

@ -1066,6 +1066,9 @@ export default {
msgUnreadOnly() {
let num = 0;
this.cacheDialogs.some(dialog => {
if (dialog.id == this.dialogId) {
return false;
}
num += $A.getDialogNum(dialog);
})
if (num <= 0) {