فهرست منبع

提交设备告警

wangming 2 ماه پیش
والد
کامیت
a007e93643
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/components/component/alarModel.vue

+ 3 - 1
src/components/component/alarModel.vue

@@ -500,7 +500,9 @@ export default {
         },
     },
     beforeMount() {
-        this.connectMQTT();
+        if (uni.getStorageSync("userId")) {
+            this.connectMQTT();
+        }
     },
     onHide() {
         if (this.mqttClient) this.mqttClient.end(true);