From 57704defda1b3b3155a6ef53644e8b0aa0d87abd Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期四, 06 七月 2023 16:32:53 +0800
Subject: [PATCH] 验质功能修改

---
 store/index.js |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/store/index.js b/store/index.js
index d5d5ba6..ed0f27b 100644
--- a/store/index.js
+++ b/store/index.js
@@ -169,7 +169,11 @@
 		},
 		// 鏀瑰彉閲嶈繛娆℃暟
 		changereconnectNum(state, payload) {
-			state.connectNum = payload
+			if (state.connectNum < 6) {
+				state.connectNum += payload
+			} else {
+				state.connectNum = payload
+			}
 		},
 	},
 	actions: {
@@ -237,15 +241,17 @@
 			commit('changereconnectState', false)
 			if (state.connectNum < 6) {
 				uni.showToast({
-					title: `杩炴帴澶辫触锛屾灏濊瘯绗�${state.connectNum}娆¤繛鎺,
+					title: `杩炴帴澶辫触锛屾鍦ㄥ皾璇曠${state.connectNum}娆¤繛鎺,
 					icon: 'none'
 				})
-				let num = 1;
-				num++;
-				commit('changereconnectNum', num)
+				commit('changereconnectNum', 1)
 				dispatch('reconnect')
 			} else {
 				commit('changereconnectNum', 1)
+				uni.showToast({
+					title: '缃戠粶寮傚父,璇风◢鍚庨噸璇�',
+					icon: 'none'
+				})
 			}
 		},
 		// 鎺ユ敹鏁版嵁

--
Gitblit v1.9.1