# bug fixed.

This commit is contained in:
xianfuxing 2018-08-28 11:14:28 +08:00
parent fc24c86728
commit b50ef0fb6d
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,7 @@ export default {
} }
], ],
zoom: 16, zoom: 16,
center: [114.186739, 22.250872], center: [],
markers: [], markers: [],
plugin: ['ToolBar', { plugin: ['ToolBar', {
pName: 'MapType', pName: 'MapType',
@ -90,6 +90,7 @@ export default {
this.coordinate = [113.203460828994, 22.64902452257] this.coordinate = [113.203460828994, 22.64902452257]
} }
// console.log(this.coordinate) // console.log(this.coordinate)
this.center = this.coordinate
this.flag = true this.flag = true
}) })
} }
@ -110,6 +111,7 @@ export default {
this.markers.push(entry) this.markers.push(entry)
}) })
this.zoom = 11 this.zoom = 11
this.center = [114.186739, 22.250872]
this.flag = true this.flag = true
} }
} }