From 99c69ac567344c5a4e2fa43c465771bb17563797 Mon Sep 17 00:00:00 2001 From: jsy_zjg <31502350@qq.com> Date: Fri, 3 Jan 2025 13:09:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/fourmonitor/pest.vue | 2 +- pages/fourmonitor/spore.vue | 2 +- pages/fourmonitor/weatherstation.vue | 2 +- pages/head/fertilizerapplicator/detail.vue | 2 +- pages/head/fertilizerapplicator/detailkl.vue | 2 +- pages/head/headdevice/detail.vue | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/fourmonitor/pest.vue b/pages/fourmonitor/pest.vue index 4bfab25..c7f72e0 100644 --- a/pages/fourmonitor/pest.vue +++ b/pages/fourmonitor/pest.vue @@ -255,7 +255,7 @@ this.mqttSubscribes(this.topics); getApp().addMsgEvent("mqtt", "mqtt_head", function(e) { if (e.type == "state") { - that.mqttConnected = e.connected; + this.mqttConnected = e.connected; } else if (e.type == "msg") { this.itemProperty = e.data; } diff --git a/pages/fourmonitor/spore.vue b/pages/fourmonitor/spore.vue index bfd73b6..3f1b318 100644 --- a/pages/fourmonitor/spore.vue +++ b/pages/fourmonitor/spore.vue @@ -226,7 +226,7 @@ this.mqttSubscribes(this.topics); getApp().addMsgEvent("mqtt", "mqtt_head", function(e) { if (e.type == "state") { - that.mqttConnected = e.connected; + this.mqttConnected = e.connected; } else if (e.type == "msg") { this.itemProperty = e.data; } diff --git a/pages/fourmonitor/weatherstation.vue b/pages/fourmonitor/weatherstation.vue index 4acf1a2..6671240 100644 --- a/pages/fourmonitor/weatherstation.vue +++ b/pages/fourmonitor/weatherstation.vue @@ -215,7 +215,7 @@ this.mqttSubscribes(this.topics); getApp().addMsgEvent("mqtt", "mqtt_head", function(e) { if (e.type == "state") { - that.mqttConnected = e.connected; + this.mqttConnected = e.connected; } else if (e.type == "msg") { this.itemProperty = e.data; } diff --git a/pages/head/fertilizerapplicator/detail.vue b/pages/head/fertilizerapplicator/detail.vue index 0047ff6..0cb7c02 100644 --- a/pages/head/fertilizerapplicator/detail.vue +++ b/pages/head/fertilizerapplicator/detail.vue @@ -463,7 +463,7 @@ this.mqttSubscribes(this.topics); getApp().addMsgEvent("mqtt", "mqtt_fertilizer", function(e) { if (e.type == "state") { - that.mqttConnected = e.connected; + this.mqttConnected = e.connected; } else if (e.type == "msg") { this.itemProperty = e.data; this.devicePropertyStatus(); diff --git a/pages/head/fertilizerapplicator/detailkl.vue b/pages/head/fertilizerapplicator/detailkl.vue index b3061ee..1e72f7c 100644 --- a/pages/head/fertilizerapplicator/detailkl.vue +++ b/pages/head/fertilizerapplicator/detailkl.vue @@ -407,7 +407,7 @@ this.mqttSubscribes(this.topics); getApp().addMsgEvent("mqtt", "mqtt_fertilizerKL", function(e) { if (e.type == "state") { - that.mqttConnected = e.connected; + this.mqttConnected = e.connected; } else if (e.type == "msg") { this.itemProperty = e.data; this.devicePropertyStatus(); diff --git a/pages/head/headdevice/detail.vue b/pages/head/headdevice/detail.vue index 7d5e1b1..6bbc5b4 100644 --- a/pages/head/headdevice/detail.vue +++ b/pages/head/headdevice/detail.vue @@ -353,7 +353,7 @@ this.mqttSubscribes(this.topics); getApp().addMsgEvent("mqtt", "mqtt_head", function(e) { if (e.type == "state") { - that.mqttConnected = e.connected; + this.mqttConnected = e.connected; } else if (e.type == "msg") { this.itemProperty = e.data; this.devicePropertyStatus();