房间socket代码修改
This commit is contained in:
parent
5357d5c23c
commit
1cd35488e8
@ -186,9 +186,11 @@ export default {
|
||||
this.members.push(this.transformUser(user));
|
||||
}
|
||||
} else {
|
||||
if (this.members[index]) {
|
||||
this.checkUserState(user, this.members[index]);
|
||||
this.members.splice(index, 1);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
async dispatchRoomInfo(room) {
|
||||
@ -222,7 +224,6 @@ export default {
|
||||
session: 'session',
|
||||
oneself: user.id === this.$store.state.user.id
|
||||
};
|
||||
|
||||
if (old) {
|
||||
if (!user.userRole) {
|
||||
this.$store.dispatch('socket/setChatContent', {...message, roomTip: `${user.nickName}被提出房间`});
|
||||
|
Loading…
Reference in New Issue
Block a user