mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-22 16:47:52 +00:00
perf: 优化未读消息数
This commit is contained in:
parent
c64c436b9f
commit
4c282962b3
@ -1066,6 +1066,9 @@ export default {
|
|||||||
msgUnreadOnly() {
|
msgUnreadOnly() {
|
||||||
let num = 0;
|
let num = 0;
|
||||||
this.cacheDialogs.some(dialog => {
|
this.cacheDialogs.some(dialog => {
|
||||||
|
if (dialog.id == this.dialogId) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
num += $A.getDialogNum(dialog);
|
num += $A.getDialogNum(dialog);
|
||||||
})
|
})
|
||||||
if (num <= 0) {
|
if (num <= 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user