新增直播中断再连接时socket链接

master
于肖磊 2025-12-08 15:48:02 +08:00
parent 6d7b17576f
commit 7adaab2ee2
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ export default {
this.windowHeight = data.windowHeight;
// #endif
this.init();
// 页面显示时连接直播间socket, 避免用户切换到其他页面再切换回来时socket连接断开
this.$refs.liveContent.socket_connect();
},
/**