Commit 455eca3b by xiaolanchong

批量删除聊天

parent 773fd72c
......@@ -242,9 +242,19 @@ const mixin = {
}
if (data.id) {
// 删除聊天
this.$Bus.$emit('bus-delTopChat', data.id);
this.$Bus.$emit('bus-delChat', data.id);
this.$Bus.$emit('bus-chatNum', -1);
if (typeof data.id === 'string') {
let ids = data.id.split(',');
ids.forEach(item => {
this.$Bus.$emit('bus-delTopChat', Number(item));
this.$Bus.$emit('bus-delChat', Number(item));
this.$Bus.$emit('bus-chatNum', -1);
});
} else if (typeof data.id === 'number') {
this.$Bus.$emit('bus-delTopChat', data.id);
this.$Bus.$emit('bus-delChat', data.id);
this.$Bus.$emit('bus-chatNum', -1);
}
}
},
_dmsActivity(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment