修改页面log输出并修改tonken超时判断

This commit is contained in:
GGJ
2024-12-18 14:15:13 +08:00
parent 21831dda90
commit 8089fcb7de
43 changed files with 203 additions and 155 deletions

View File

@@ -140,7 +140,7 @@ const handleUpDevice = () => {
const radioChangeEvent: VxeTableEvents.RadioChange = ({ row }) => {
selectRow.value = row
console.log('单选事件')
// console.log('单选事件')
}
@@ -183,7 +183,7 @@ mqttRef.value.on('connect', () => {
})
const mqttMessage = ref<any>({})
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)))))
loading.value = false
let str = JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message))))
let regex1 = /allStep:(.*?),nowStep/
@@ -192,7 +192,7 @@ mqttRef.value.on('message', (topic: any, message: any) => {
allStep: str.match(regex1)[1],
nowStep: str.match(regex2)[1]
}
console.log(mqttMessage.value)
// console.log(mqttMessage.value)
let checkedList = tableRef.value.getCheckboxRecords().map((item: any) => {
return item.name
})