好友申请通知优化

This commit is contained in:
2022-02-23 17:01:26 +08:00
parent 8a8e55600f
commit 103679c372
3 changed files with 54 additions and 42 deletions

View File

@@ -57,7 +57,11 @@
// 好友申请数量
this.checkNewFriendPending()
// 监听新的好友申请
uni.$on('onNewContactConversation', this.checkNewFriendPending)
uni.$on('onNewContactConversation', () => {
console.log('更新好友申请数量');
// 更新好友申请数量
this.checkNewFriendPending()
})
},
onShow() {
if (this.$store.state.token !== '') {