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