From 40965e0f2ae05a5473c91c71b07b9492be9dfee9 Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Wed, 5 Sep 2018 21:04:22 +0800 Subject: [PATCH] # remove useless time sleep --- src/views/counter/map2.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/counter/map2.vue b/src/views/counter/map2.vue index 92acd02..c4aaf42 100644 --- a/src/views/counter/map2.vue +++ b/src/views/counter/map2.vue @@ -214,7 +214,6 @@ export default { handleDrivingClick() { const geo_map = new AMap.Map('map-container') this.geo_map = geo_map - this.sleep(300) AMap.plugin(['AMap.ToolBar', 'AMap.Scale', 'AMap.Driving', 'AMap.Geolocation'], () => { geo_map.addControl(new AMap.ToolBar()) geo_map.addControl(new AMap.Scale())