ソースを参照

修复未读消息显示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();
 		}
 	}