Explorar o código

修复未读消息显示bug

xsx %!s(int64=2) %!d(string=hai) anos
pai
achega
d385e21da6
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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();
 		}
 	}