Browse Source

未读数量显示bug

master
xsx 2 years ago
parent
commit
b35366b371
  1. 4
      im-web/src/view/Home.vue

4
im-web/src/view/Home.vue

@ -336,7 +336,9 @@
let unreadCount = 0; let unreadCount = 0;
let chats = this.$store.state.chatStore.chats; let chats = this.$store.state.chatStore.chats;
chats.forEach((chat) => { chats.forEach((chat) => {
unreadCount += chat.unreadCount if(!chat.delete){
unreadCount += chat.unreadCount
}
}); });
return unreadCount; return unreadCount;
} }

Loading…
Cancel
Save