diff --git a/src/views/index.vue b/src/views/index.vue index ece4112c..d3aede4b 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -372,8 +372,9 @@ export default { if (this.$route.query.type == '实时视频') { this.videoAnalysisShow = false; this.trafficAnalysisShow = false; - document.getElementById('mapModule').contentWindow.lixianVideo(JSON.stringify(this.analysis)); + this.createMqtt(); + document.getElementById('mapModule').contentWindow.lixianVideo(JSON.stringify(this.analysis)); } else if (this.$route.query.type == '离线视频'){ this.videoAnalysisShow = true; this.trafficAnalysisShow = true;