dedsudiyu 2 年之前
父节点
当前提交
8285e91e41
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/layout/components/AppMain.vue

+ 2 - 4
src/layout/components/AppMain.vue

@@ -56,13 +56,11 @@ export default {
   },
   created() {
     // this.getListStatus();
+    this.selectTriggerInfo();
   },
   mounted(){
     this.userType = localStorage.getItem('userType')
-    if(userType != 22){
-      this.selectTriggerInfo();
-      this.subscriptionMQTT();
-    }
+    this.subscriptionMQTT();
   },
   methods:{
     workClickOff(){