房间socket代码修改
This commit is contained in:
parent
5357d5c23c
commit
1cd35488e8
@ -186,8 +186,10 @@ export default {
|
||||
this.members.push(this.transformUser(user));
|
||||
}
|
||||
} else {
|
||||
this.checkUserState(user, this.members[index]);
|
||||
this.members.splice(index, 1);
|
||||
if (this.members[index]) {
|
||||
this.checkUserState(user, this.members[index]);
|
||||
this.members.splice(index, 1);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -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