未读角标增加

This commit is contained in:
zhangzheng
2026-03-12 12:46:22 +08:00
parent cccd5f8cec
commit 873ce3d940
3 changed files with 29 additions and 7 deletions

View File

@@ -127,6 +127,12 @@ class UIRenderer {
break;
case 'SIDEBAR_TOGGLE':
this.renderSidebar(changes.isOpen);
// 当侧边栏打开时,重置未读消息计数
if (changes.isOpen) {
this.renderUnreadCount(0);
} else{
this.renderUnreadCount(changes.unreadCount);
}
break;
case 'NETWORK_CHANGE':
this.renderNetworkStatus(changes.quality);