好友关系解除,从会话页返回主页
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user