# up events

This commit is contained in:
xianfuxing 2018-08-28 18:12:36 +08:00
parent 14541130f3
commit 46e801346b
1 changed files with 1 additions and 2 deletions

View File

@ -6,6 +6,7 @@
v-for="(marker, index) in markers"
:key="index"
:position="marker.position"
:events="marker.events"
:visible="marker.visible" :draggable="marker.draggable" :vid="index"
>
</el-amap-marker>
@ -86,7 +87,6 @@ export default {
this.deviceList = response.data.results
// console.log(this.deviceList)
this.coordinate = this.deviceList[0].coordinate
console.log('coor', this.coordinate)
if (this.coordinate === null) {
this.coordinate = [113.203460828994, 22.64902452257]
}
@ -98,7 +98,6 @@ export default {
marker.events = defaultEvents
this.markers.push(marker)
this.center = this.coordinate
console.log(this.deviceList, marker)
this.flag = true
})
}