diff --git a/src/views/map/index.vue b/src/views/map/index.vue index c4ff75a..34b149c 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -1105,7 +1105,8 @@ export default { password: '58d06a44d56c4445b4c019492f86ee8d' }, subscription: { - topic: '1698584148364034050/+/+/prop', + // '+'是通配符 + topic: '+/UwbBQ/+/prop', qos: 0 }, @@ -2527,7 +2528,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 } // 将地图上剩余的点与最新的定位人员点进行对比更新地图上已存在的点新增地图上之前没有的点