# title 使用设备名称显示

This commit is contained in:
xianfuxing 2020-05-25 14:32:15 +08:00
parent cc95c8d0ce
commit e20af0e91e
1 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,8 @@ export default {
map: this.map
})
item.title = '东岸灯饰工业区'
// item.title = ''
item.title = item.device_name
const infoWindow = this.instantiateInforWindow(item, true)
AMap.event.addListener(marker, 'click', () => {
infoWindow.open(this.map, marker.getPosition())