dedsudiyu 2 年之前
父節點
當前提交
1425046c61
共有 1 個文件被更改,包括 4 次插入2 次删除
  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(){