qingyiay
2023-06-29 ceeb19ad302df0ae6146895cac263d7bdc38ac31
pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -13,7 +13,7 @@
            </view>
         </view>
      </view>
      <customer-index v-if="roleType == 1"
      <customer-index v-if="roleType == 1||roleType == 4"
         ref="customerIndexRef"
         :orderPlanDataStore="orderPlanDataStore"></customer-index>
      <freight-forwarder-index v-if="roleType == 2"
@@ -175,7 +175,7 @@
         if (this.globalisconnect) {
            this.$store.dispatch('websocketInit')
            this.changeisconnect(false)
            console.log(this.globalisconnect, 'index的ws心事’');
            console.log(this.globalisconnect, 'index的ws数据’');
         }
         this.userAuthorization();
         this.messageReq();
@@ -187,6 +187,7 @@
         console.log('页面卸载');
         this.$store.dispatch('websocketOnClose')
         clearInterval(this.globalIntervalId);
         this.changeisconnect(true)
      },
      methods: {
         ...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit']),