彭宇 vor 3 Jahren
Ursprung
Commit
ac9daec583
1 geänderte Dateien mit 8 neuen und 4 gelöschten Zeilen
  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)
           }
         })
       },