mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-06 20:58:12 +00:00
perf: 优化未读消息数
This commit is contained in:
parent
c64c436b9f
commit
4c282962b3
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user