qingyiay
2023-09-26 97d88adcdfa7e13b2203c8716c02866fae087704
pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -124,8 +124,10 @@
         clearInterval(this.globalIntervalId);
         this.changeisconnect(false)
      },
      onLoad() {
      onShow() {
         this.init();
      },
      onLoad() {
         this.$store.dispatch('websocketInit')
         this.$store.commit('changeisLogin', true)
         console.log(this.globalisconnect, 'index的ws数据');
@@ -189,9 +191,10 @@
               }
            } else if (v.startsWith('wsg')) {
               let wsgObj = JSON.parse(v.slice(5));
               if (uni.getStorageInfoSync('carNo') === wsgObj.carNo) {
                  changewsgVisiable(true)
                  changewsgContent(wsgObj.content)
               console.log(uni.getStorageSync('carNo'), wsgObj.carNo);
               if (uni.getStorageSync('carNo') === wsgObj.carNo) {
                  this.changewsgVisiable(true)
                  this.changewsgContent(wsgObj.content)
               }
            }
         }