修改菜单

This commit is contained in:
guanj
2025-12-17 17:41:35 +08:00
parent 67e2fa57d0
commit 7e4db9d4cd
3 changed files with 117 additions and 112 deletions

View File

@@ -979,10 +979,10 @@ const getRealDataMqttMsg = async () => {
})
}, 30000)
mqttRef.value.on('message', (topic: any, message: any) => {
// console.log(
// '实时数据&实时趋势---mqtt接收到消息',
// JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message))))
// )
console.log(
'实时数据&实时趋势---mqtt接收到消息',
JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message))))
)
let obj = JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message))))
if (lineId.value != obj.lineId || adminInfo.userIndex != obj.userId) return