浏览代码

修复未读消息显示bug

xsx 2 年之前
父节点
当前提交
d385e21da6
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      im-uniapp/pages/chat/chat.vue

+ 3 - 2
im-uniapp/pages/chat/chat.vue

@@ -83,7 +83,8 @@
 					})
 				} else {
 					uni.removeTabBarBadge({
-						index: 0
+						index: 0,
+						complete:()=>{}
 					})
 
 				}
@@ -103,7 +104,7 @@
 				this.refreshUnreadBadge();
 			}
 		},
-		onLoad() {
+		onShow() {
 			this.refreshUnreadBadge();
 		}
 	}