mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-08-06 10:57:25 +08:00
mqtt配置增加
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user