diff --git a/src/utils/mqtt.ts b/src/utils/mqtt.ts index 59f991b..073efc4 100644 --- a/src/utils/mqtt.ts +++ b/src/utils/mqtt.ts @@ -119,6 +119,9 @@ const clientPublish = (topic: string, querys: any) => { // createConnection(); // } getClient().publish(topic, JSON.stringify(querys), { qos: 0 }, (err) => { + // if(err == undefined){ + // createMessage.error('指令执行失败,请检查设备连接状态'); + // } if (err) { console.error('Publish error:', err); } diff --git a/src/views/demo/workmanagement/flightoperation/index.vue b/src/views/demo/workmanagement/flightoperation/index.vue index 539ff19..c3e2960 100644 --- a/src/views/demo/workmanagement/flightoperation/index.vue +++ b/src/views/demo/workmanagement/flightoperation/index.vue @@ -71,7 +71,7 @@ diff --git a/src/views/demo/workmanagement/projecthome/index.vue b/src/views/demo/workmanagement/projecthome/index.vue index 92bf978..fbf7f62 100644 --- a/src/views/demo/workmanagement/projecthome/index.vue +++ b/src/views/demo/workmanagement/projecthome/index.vue @@ -1,7 +1,7 @@