dedsudiyu 2 anni fa
parent
commit
8285e91e41
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  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(){