소스 검색

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