修改群主功能

This commit is contained in:
dong 2023-05-22 10:08:13 +08:00
parent e6b1d2777a
commit 2635ea8c57

View File

@ -184,6 +184,24 @@ export default {
} }
this.getGroupList(); 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() { myMemberId() {
this.getGroupList(); this.getGroupList();
}, },
@ -269,16 +287,16 @@ export default {
return item.leaderId != this.myMemberId; return item.leaderId != this.myMemberId;
}, },
isShow: (item) => item.type === 'GROUP_CHAT' 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 = []; this.menu = [];
const list = menuNormal(item); const list = menuNormal(item);