This commit is contained in:
yanran200730
2022-11-03 16:30:42 +08:00
parent 5089b071dd
commit 3af39ca6a9

View File

@@ -181,7 +181,6 @@ export default {
this.id = this.params.id
this.getDetail()
setTimeout(() => {
this.getMap(this.info.lng,this.info.lat,this.info.address)
},500)
}
},
@@ -277,12 +276,12 @@ export default {
zooms: [6, 20],
zoom: 11,
})
})
var marker = new AMap.Marker({
position: new AMap.LngLat(lng,lat),
title: address
})
this.mapDetail.add(marker);
})
},
update() {
@@ -301,6 +300,7 @@ export default {
this.info = res.data
this.placeDetail.lng = res.data.lng
this.placeDetail.lat = res.data.lat
this.getMap(this.info.lng,this.info.lat,this.info.address)
}
})
},