| | |
| | | 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数据'); |
| | |
| | | } |
| | | } 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) |
| | | } |
| | | } |
| | | } |