彭宇 преди 3 години
родител
ревизия
ac9daec583
променени са 1 файла, в които са добавени 8 реда и са изтрити 4 реда
  1. 8 4
      src/views/animal.vue

+ 8 - 4
src/views/animal.vue

@@ -248,8 +248,10 @@
               that.$refs.supermap.setMarkers(that.markersList)
             }, 1000)
           }else{
-            that.$refs.supermap.clearM(false)
-            that.$refs.supermap.clearM(true)
+            setTimeout(() => {
+              that.$refs.supermap.clearM(false)
+              that.$refs.supermap.clearM(true)
+            }, 1000)
           }
         })
       },
@@ -311,8 +313,10 @@
               that.$refs.supermap.setMarkers(that.markersList)
             }, 1000)
           }else{
-            that.$refs.supermap.clearM(false)
-            that.$refs.supermap.clearM(true)
+            setTimeout(() => {
+              that.$refs.supermap.clearM(false)
+              that.$refs.supermap.clearM(true)
+            }, 1000)
           }
         })
       },