dedsudiyu 2 years ago
parent
commit
1425046c61
1 changed files with 4 additions and 2 deletions
  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(){