| | |
| | | connectNum: 1, //重连次数, |
| | | reconnectTimeOut: null, |
| | | // 称重稳定态 0/稳定 1/非稳定 非稳定态不能点称重 |
| | | globalWarning: false |
| | | globalWarning: false, |
| | | globalShowWeigh: [] |
| | | }, |
| | | mutations: { |
| | | lengthchange(state, payload) { |
| | |
| | | // 改变稳定态 |
| | | changeWarning(state, payload) { |
| | | state.globalWarning = payload |
| | | }, |
| | | changeglobalShowWeigh(state, payload) { |
| | | state.globalShowWeigh = payload |
| | | } |
| | | }, |
| | | actions: { |
| | |
| | | }) |
| | | commit('changereconnectNum', 1) |
| | | dispatch('reconnect') |
| | | } else if (state.connectNum > 6 && state.globalisLogin) { |
| | | } else if (state.connectNum >= 6 && state.globalisLogin) { |
| | | commit('changereconnectNum', 1) |
| | | uni.showToast({ |
| | | title: '网络异常,请稍后重试', |