diff --git a/im-uniapp/pages/chat/chat.vue b/im-uniapp/pages/chat/chat.vue index 14b3225..3f8411c 100644 --- a/im-uniapp/pages/chat/chat.vue +++ b/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(); } }