فهرست منبع

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