qingyiay
2023-08-29 c46feb89edb62a764e46084e4a6a0e2e00cb5dfd
store/index.js
@@ -107,7 +107,8 @@
      connectNum: 1, //重连次数,
      reconnectTimeOut: null,
      // 称重稳定态  0/稳定 1/非稳定  非稳定态不能点称重
      globalWarning: false
      globalWarning: false,
      globalShowWeigh: []
   },
   mutations: {
      lengthchange(state, payload) {
@@ -180,6 +181,9 @@
      // 改变稳定态
      changeWarning(state, payload) {
         state.globalWarning = payload
      },
      changeglobalShowWeigh(state, payload) {
         state.globalShowWeigh = payload
      }
   },
   actions: {
@@ -262,7 +266,7 @@
            })
            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: '网络异常,请稍后重试',