From dc605fe90a183189b77196a4562863c26ed7f42d Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Tue, 23 Feb 2021 19:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=9A=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=97=B6=E9=87=8D=E8=BF=9Ews?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/chat-page.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/chat-page.js b/static/js/chat-page.js index 40291e3..668fc4d 100644 --- a/static/js/chat-page.js +++ b/static/js/chat-page.js @@ -342,6 +342,7 @@ new Vue({ }, //初始化 init:function(){ + var _this=this; this.initCss(); $("#app").click(function(){ clearTimeout(titleTimer); @@ -353,6 +354,9 @@ new Vue({ $('.faceBox').hide(); }); + window.onfocus = function () { + _this.initConn(); + } }, //表情点击事件 faceIconClick:function(index){