qingyiay
2023-07-07 837c21ced9ed0aafe17a7c0c16975a1b6731eb9d
pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -171,10 +171,10 @@
      },
      onShow() {
         this.init();
         console.log(this.globalisconnect);
         if (this.globalisconnect) {
            this.$store.dispatch('websocketInit')
            this.changeisconnect(false)
            this.changeisLogin(true)
            console.log(this.globalisconnect, 'index的ws数据’');
         }
         this.userAuthorization();
@@ -187,7 +187,9 @@
         this.changeisconnect(true)
      },
      methods: {
         ...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit']),
         ...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit',
            'changeisLogin'
         ]),
         messagePage() {
            uni.navigateTo({
               url: '/pages/public-page/message/message'