From eec82b55813387e20087989536cd32810b59cd48 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期五, 13 十月 2023 09:42:49 +0800 Subject: [PATCH] 大部分按钮增加loading 放空操作逻辑修改 --- store/index.js | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/store/index.js b/store/index.js index ec18080..9e1b08f 100644 --- a/store/index.js +++ b/store/index.js @@ -147,7 +147,9 @@ wsgContent: '', globalIsFirstWeighing: 1, //鏄惁鏄涓�娆′笂纾� confirmWeighVisiable: false, //纾呮埧绠$悊纭绉伴噸瀹屾垚鎻愮ず寮圭獥 - confirmWeighContent: '' + confirmWeighContent: '', + // 绉伴噸绋冲畾鎬� 0/绋冲畾 1/闈炵ǔ瀹� 闈炵ǔ瀹氭�佷笉鑳界偣绉伴噸 + globalWarning: false, }, mutations: { lengthchange(state, payload) { @@ -244,7 +246,11 @@ }, changeconfirmWeighContent(state, payload) { state.confirmWeighContent = payload - } + }, + // 鏀瑰彉绋冲畾鎬� + changeWarning(state, payload) { + state.globalWarning = payload + }, }, actions: { websocketInit({ state, dispatch, commit }) { @@ -295,7 +301,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' -- Gitblit v1.9.1