From 2adce788c1a411959b81f08d5569d92861c7f300 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期二, 17 十月 2023 16:54:52 +0800
Subject: [PATCH] 删除无用代码 修改部分逻辑 调整部分样式
---
store/index.js | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/store/index.js b/store/index.js
index bdb23b7..bd9cb60 100644
--- a/store/index.js
+++ b/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,8 +298,7 @@
clearInterval(state.reconnectTimeOut)
state.socketTask = null
commit('changereconnectState', false)
- console.log(state.connectNum, state.connectNum.connectNum, '閾炬帴鏁�');
- 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'
--
Gitblit v1.9.1