diff --git a/pages/zhibo/index.nvue b/pages/zhibo/index.nvue index 031496c..457b445 100644 --- a/pages/zhibo/index.nvue +++ b/pages/zhibo/index.nvue @@ -454,6 +454,13 @@ export default { }, methods:{ sendMessage (messageType, content) {//发送消息 + if(!this.chatRoomService.status){ + uni.showToast({ + title: '连接聊天室中,请稍等', + duration: 2000 + }); + return + } console.log(this.room,this.room.id,messageType, content) if(content == "" && messageType == 0) return; var message = {