qingyiay
2023-11-03 8b73cc807383e774b4481f0de35976269ef50b7a
store/index.js
@@ -147,12 +147,11 @@
      wsgContent: '',
      globalIsFirstWeighing: 1, //是否是第一次上磅
      confirmWeighVisiable: false, //磅房管理确认称重完成提示弹窗
      confirmWeighContent: ''
      confirmWeighContent: '',
      // 称重稳定态  0/稳定 1/非稳定  非稳定态不能点称重
      globalWarning: false,
   },
   mutations: {
      lengthchange(state, payload) {
         state.fleetDriverDataLength = payload
      },
      setUserInfo(state, identity) {
         state.userInfo = userObj[identity]
      },
@@ -244,7 +243,11 @@
      },
      changeconfirmWeighContent(state, payload) {
         state.confirmWeighContent = payload
      }
      },
      // 改变稳定态
      changeWarning(state, payload) {
         state.globalWarning = payload
      },
   },
   actions: {
      websocketInit({ state, dispatch, commit }) {
@@ -295,7 +298,7 @@
         clearInterval(state.reconnectTimeOut)
         state.socketTask = null
         commit('changereconnectState', false)
         if (state.connectNum < 6 || state.connectNum.connectNum < 6 && state.globalisLogin) {
         if ((state.connectNum < 6 || state.connectNum.connectNum < 6) && state.globalisLogin) {
            uni.showToast({
               title: '连接失败,正在尝试重新连接',
               icon: 'none'