修改群主功能
This commit is contained in:
parent
e6b1d2777a
commit
2635ea8c57
@ -184,6 +184,24 @@ export default {
|
||||
}
|
||||
this.getGroupList();
|
||||
},
|
||||
'$store.state.socket.conversationGroup.UPDATE_NAME': function(val) {
|
||||
if (val.messageTips) {
|
||||
this.$message.success(`${val.messageTips}`);
|
||||
}
|
||||
this.getGroupList();
|
||||
},
|
||||
'$store.state.socket.conversationGroup.UPDATE_MEMBER': function(val) {
|
||||
if (val.messageTips) {
|
||||
this.$message.success(`${val.messageTips}`);
|
||||
}
|
||||
this.getGroupList();
|
||||
},
|
||||
'$store.state.socket.conversationGroup.EXIT': function(val) {
|
||||
if (val.messageTips) {
|
||||
this.$message.success(`${val.messageTips}`);
|
||||
}
|
||||
this.getGroupList();
|
||||
},
|
||||
myMemberId() {
|
||||
this.getGroupList();
|
||||
},
|
||||
@ -269,16 +287,16 @@ export default {
|
||||
return item.leaderId != this.myMemberId;
|
||||
},
|
||||
isShow: (item) => item.type === 'GROUP_CHAT'
|
||||
},
|
||||
{
|
||||
label: '修改群主',
|
||||
handler: this.editGroupLeader,
|
||||
groupInfo: item,
|
||||
isDisabled: (item) => {
|
||||
return item.leaderId != this.myMemberId;
|
||||
},
|
||||
isShow: (item) => item.type === 'GROUP_CHAT'
|
||||
}
|
||||
// {
|
||||
// label: '修改群主',
|
||||
// handler: this.editGroupLeader,
|
||||
// groupInfo: item,
|
||||
// isDisabled: (item) => {
|
||||
// return item.leaderId != this.myMemberId;
|
||||
// },
|
||||
// isShow: (item) => item.type === 'GROUP_CHAT'
|
||||
// }
|
||||
];
|
||||
this.menu = [];
|
||||
const list = menuNormal(item);
|
||||
|
Loading…
Reference in New Issue
Block a user