dedsudiyu 2 vuotta sitten
vanhempi
commit
1425046c61
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      src/layout/components/AppMain.vue

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

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