新好友提醒优化

This commit is contained in:
2022-02-16 18:00:23 +08:00
parent ff334c1cb0
commit 3eb7b80496
4 changed files with 20 additions and 22 deletions

View File

@@ -57,13 +57,7 @@
onLoad() {
this.getFriendList()
this.checkNewFriendPending()
uni.$on('onContactNotification', () => {
this.checkNewFriendPending()
this.getFriendList()
})
},
onUnload() {
uni.$off('onContactNotification')
uni.$on('onContactNotification', this.checkNewFriendPending)
},
methods: {
getFriendList() {
@@ -83,11 +77,11 @@
})
},
toGroup() {
uni.navigateTo({
url: '/pages/im/group/index',
fail(err) {
console.log(err);
}
uni.navigateTo({
url: '/pages/im/group/index',
fail(err) {
console.log(err);
}
})
},
toFriend(targetId) {