From f7767033ee4bf407476bf453dd3bdcdaec14525e Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Wed, 30 Sep 2020 11:50:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E8=BF=9E=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/chat-page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/chat-page.js b/static/js/chat-page.js index 9404e38..7f73506 100644 --- a/static/js/chat-page.js +++ b/static/js/chat-page.js @@ -252,12 +252,12 @@ new Vue({ let _this=this; let mes = {} mes.type = "ping"; - mes.data = ""; + mes.data = "visitor:"+_this.visitor.visitor_id; setInterval(function () { if(_this.socket!=null){ _this.socket.send(JSON.stringify(mes)); } - },30000); + },10000); }, //初始化 init(){