好友关系解除,从会话页返回主页

This commit is contained in:
2022-02-24 13:03:41 +08:00
parent 831776f7dd
commit 0eb6be37be
2 changed files with 12 additions and 2 deletions

View File

@@ -84,8 +84,18 @@
}
})
})
uni.$once('onUserDelete_' + this.targetId, () => {
uni.showToast({
icon: 'none',
title: '好友关系已解除'
})
uni.switchTab({
url: '/pages/im/index'
})
})
},
onUnload() {
uni.$off('onUserDelete_' + this.targetId)
uni.$off('onReceiveMessage_' + this.targetId)
uni.$off('onRecallMessage_' + this.targetId)
uni.$off('onRecallMessage')