diff --git a/src/views/counter/map.vue b/src/views/counter/map.vue index 5617b03..a1a23f3 100644 --- a/src/views/counter/map.vue +++ b/src/views/counter/map.vue @@ -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" > @@ -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 }) }