From 18e67398ec682f13d15096c3ea302e2545862e85 Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 28 Mar 2024 10:30:08 +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=E6=97=A0=E6=95=B0=E6=8D=AEbug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/map/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 } // 将地图上剩余的点与最新的定位人员点进行对比 更新地图上已存在的点 新增地图上之前没有的点