Browse Source

bug修复

chenrui 4 years ago
parent
commit
23fa10f75d
1 changed files with 3 additions and 1 deletions
  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()  //  计算距离
+						}
 					}
 				})
 			},