Explorar o código

地图加载失败

Shannon_mu %!s(int64=3) %!d(string=hai) anos
pai
achega
d4955a06d8

+ 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();
+                    });
                 }
             }
         }