mqtt配置增加

This commit is contained in:
chc
2026-07-06 15:53:40 +08:00
parent 2965800d87
commit e14481ce6b
4 changed files with 388 additions and 1 deletions

View File

@@ -583,12 +583,13 @@ export default {
if (this.liveId && !this.pollTimer) {
this.startPolling();
}
if (this.liveId && this.liveMqttService && !this.liveMqttService.isConnected()) {
if (this.liveId && !this.loading && this.roomInfo?.liveStatus !== LIVE_STATUS.ENDED) {
this.initLiveMqtt();
}
},
onHide() {
this.stopPolling();
this.cleanupLiveMqtt();
},
onUnload() {
this.stopPolling();