|
@@ -619,7 +619,6 @@ export default {
|
|
|
}
|
|
|
delete message.params
|
|
|
this.msgList.push(message)
|
|
|
-
|
|
|
// 移动到底部
|
|
|
this.$nextTick(() => {
|
|
|
setTimeout(() => {
|
|
@@ -628,12 +627,15 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
else if (cmd === 'entry' || cmd === 'out') {
|
|
|
-
|
|
|
let user = data
|
|
|
if(this.userList.length > 0){
|
|
|
this.userList = this.userList.filter(u => u.userId !== user.userId)
|
|
|
}
|
|
|
this.userList.push(user)
|
|
|
+ } else if (cmd === 'live_start') {
|
|
|
+ this.msgSuccess("直播开始了!");
|
|
|
+ } else if (cmd === 'live_end') {
|
|
|
+ this.msgError("直播已结束!");
|
|
|
}
|
|
|
}
|
|
|
},
|