From 6cc35000a6e138cfad96e7b02f8aeddcdb4ba6bf Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期二, 24 六月 2025 09:57:25 +0800
Subject: [PATCH] 代码提交

---
 代码管理/NEWCode/WIDESEAWCS_PDA/pages/SetAddress/SetAddress.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/SetAddress/SetAddress.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/SetAddress/SetAddress.vue"
index 15ca763..3e9a49a 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/SetAddress/SetAddress.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/pages/SetAddress/SetAddress.vue"
@@ -82,6 +82,10 @@
 		methods: {
 			submit() {
 				this.$refs.uForm.validate().then(res => {
+					if (!res) {
+							this.$t.message.toast('楠岃瘉涓嶉�氳繃');
+							return false;
+					} 
 					const ipAddress = {
 						WCSIP: this.valiFormData.WCSIP,
 						CZZJip: this.valiFormData.CZZJip,
@@ -91,10 +95,12 @@
 						key: 'storage_key_ipAddress',
 						data: ipAddress,
 						success: (res) => {
+							// 鍦ㄩ渶瑕佸埛鏂伴〉闈㈢殑鍦版柟璋冪敤
+							location.reload();
 							this.$t.message.toast('淇濆瓨鎴愬姛');
-							uni.switchTab({
-								url: '/pages/index/index'
-							})
+							uni.navigateBack({
+								delta: 1
+							});
 						}
 					});
 				}).catch(errors => {

--
Gitblit v1.9.3