qingyiay
2023-09-07 491249bdf736a5f7d50417c889ad2db734b12383
pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
@@ -251,12 +251,26 @@
            deep: true
         }
      },
      onPullDownRefresh() {
         if (!this.globalisconnect && !this.globalisUploadimg && this.globalisLogin) {
            if (!this.is_open_socket) {
               this.$store.dispatch('websocketInit')
               this.changeisconnect(false);
               console.log('称重的ws');
               uni.stopPullDownRefresh();
            } else {
               uni.stopPullDownRefresh();
            }
         }
      },
      onShow() {
         this.init();
         // this.realTimeWeigh = 0
      },
      computed: {
         ...mapState(['globalweigh', 'globalinfraredStatus', 'globalWarning']),
         ...mapState(['globalweigh', 'globalinfraredStatus', 'globalWarning', 'globalisconnect', 'globalisUploadimg',
            'globalisLogin', 'is_open_socket'
         ]),
         token() {
            return uni.getStorageSync('token');
         },