# remove useless time sleep

This commit is contained in:
xianfuxing 2018-09-05 21:04:22 +08:00
parent a971db8738
commit 40965e0f2a
1 changed files with 0 additions and 1 deletions

View File

@ -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())