Shannon_mu пре 3 година
родитељ
комит
d4955a06d8
1 измењених фајлова са 5 додато и 3 уклоњено
  1. 5 3
      operationSupport/src/views/patrolManagement/popups/mapValue.vue

+ 5 - 3
operationSupport/src/views/patrolManagement/popups/mapValue.vue

@@ -83,9 +83,11 @@ export default {
                 this.map.add(this.markerArr);
                 this.map.setFitView();
                 if (this.isStart) {
-                    this.initPlayBox();
-                    this.beforeInit = true;
-                    this.initLineArr();
+                    this.$nextTick(() => {
+                        this.initPlayBox();
+                        this.beforeInit = true;
+                        this.initLineArr();
+                    });
                 }
             }
         }