| | |
| | | }, |
| | | 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(); |
| | |
| | | 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' |