From ffe9fdd4760240d7626bc5673f41faf0f4c765f5 Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 28 Mar 2024 09:43:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=85=AC=E5=8F=B8=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E7=B3=BB=E7=BB=9F=E6=B2=A1=E6=9C=89=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E4=BF=A1=E6=81=AFbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/map/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 } // 将地图上剩余的点与最新的定位人员点进行对比更新地图上已存在的点新增地图上之前没有的点