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();