27143
This commit is contained in:
@@ -210,14 +210,10 @@ export default {
|
||||
this.showMap = false
|
||||
},
|
||||
getCorpLocation() {
|
||||
this.instance.post('/app/appdvcpconfig/getCorpLocation').then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.initMap(res.data)
|
||||
}
|
||||
})
|
||||
this.initMap()
|
||||
},
|
||||
|
||||
initMap({ lng, lat }) {
|
||||
initMap() {
|
||||
AMapLoader.load({
|
||||
key: 'b553334ba34f7ac3cd09df9bc8b539dc',
|
||||
version: '2.0',
|
||||
@@ -228,7 +224,6 @@ export default {
|
||||
this.map = new AMap.Map('map', {
|
||||
resizeEnable: true,
|
||||
zooms: [6, 20],
|
||||
center: [lng, lat],
|
||||
zoom: 11,
|
||||
})
|
||||
this.placeSearch = new AMap.PlaceSearch({ map: this.map })
|
||||
|
||||
Reference in New Issue
Block a user