# remove useless time sleep
This commit is contained in:
parent
a971db8738
commit
40965e0f2a
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue