# up events
This commit is contained in:
parent
14541130f3
commit
46e801346b
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue