diff --git a/src/views/map/index.vue b/src/views/map/index.vue index df4d1ec..b0da679 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -1051,7 +1051,7 @@ export default { password: '58d06a44d56c4445b4c019492f86ee8d' }, subscription: { - topic: '1698584148364034050/+/+/prop', + topic: '+/UwbBQ/+/prop', qos: 0 }, @@ -2005,7 +2005,8 @@ export default { for (let i = 0; i < peopleList.length; i++) { const item = peopleList[i] // 如果不是人员信息则跳过 - if (item.properties.length < 3 || item.properties[2].identifier !== 'X' || item.properties[3].identifier !== 'Y') { + // UwbBQ是人员定位卡的id(UwbJiZhan这是基站的id) + if (item.productKey !== 'UwbBQ') { continue } // 将地图上剩余的点与最新的定位人员点进行对比 更新地图上已存在的点 新增地图上之前没有的点