From 7adaab2ee2eba035c8a3132db5fb78fbaaf681e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Mon, 8 Dec 2025 15:48:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=9B=B4=E6=92=AD=E4=B8=AD?= =?UTF-8?q?=E6=96=AD=E5=86=8D=E8=BF=9E=E6=8E=A5=E6=97=B6socket=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/live/pull/mixins/mixins.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/plugins/live/pull/mixins/mixins.js b/pages/plugins/live/pull/mixins/mixins.js index b3e16e19..4150dcc7 100644 --- a/pages/plugins/live/pull/mixins/mixins.js +++ b/pages/plugins/live/pull/mixins/mixins.js @@ -55,6 +55,8 @@ export default { this.windowHeight = data.windowHeight; // #endif this.init(); + // 页面显示时,连接直播间socket, 避免用户切换到其他页面,再切换回来时,socket连接断开 + this.$refs.liveContent.socket_connect(); }, /**