zhuguifei
2024-12-25 576d28de6be2d75bfd5a213874dd8d06657635b5
pages/device/control.vue
@@ -291,12 +291,8 @@
         // })
         let _this = this
         this.$mqttTool.client.on('message', function(topic, message, buffer) {
            console.error("解析数据")
            const msg = JSON.parse(message);
            console.error(topic)
            console.error(msg)
            console.error(msg.success)
            if (topic == _this.$constant.SERVICE_RES_EQU_STATU.replace('equ', _this.deviceId)) {
               if (msg.success) {
                  _this.connected = msg.connected