chenrui 4 rokov pred
rodič
commit
23fa10f75d
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      pages/index/map.vue

+ 3 - 1
pages/index/map.vue

@@ -72,7 +72,9 @@
 								})
 							}
 						})
-						this.onCalculateDistance()  //  计算距离
+						if(this.markers.length>0){
+							this.onCalculateDistance()  //  计算距离
+						}
 					}
 				})
 			},