From 88db962f50b6f6eae337fe0e32eb4b45a96fadaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B6=E5=A3=AB=E6=B6=B5?= <630892807@qq.com> Date: Tue, 23 Feb 2021 22:46:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/chat-page.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/chat-page.js b/static/js/chat-page.js index 668fc4d..452fbb6 100644 --- a/static/js/chat-page.js +++ b/static/js/chat-page.js @@ -76,7 +76,7 @@ new Vue({ this.alertSound();//提示音 } if (redata.type == "close") { - this.chatTitle="连接关闭!请重新打开页面"; + this.chatTitle="系统关闭连接!请重新打开页面"; $(".chatBox").append("
"+this.chatTitle+"
"); this.scrollBottom(); this.socket.close(); @@ -150,8 +150,10 @@ new Vue({ this.socket.send(JSON.stringify(message)); }, OnClose:function() { + this.socketClosed=true; this.chatTitle="连接关闭!请重新打开页面"; $(".chatBox").append("
"+this.chatTitle+"
"); + this.scrollBottom(); }, //获取当前用户信息 getUserInfo:function(){ @@ -338,7 +340,7 @@ new Vue({ if(_this.socket!=null){ _this.socket.send(JSON.stringify(mes)); } - },10000); + },120000); }, //初始化 init:function(){