From 54a7df532e4fd82a1462edd4475403ed9b2be0cc Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期四, 10 四月 2025 14:20:40 +0800
Subject: [PATCH] 添加接口地址更改

---
 代码管理/NEWCode/WIDESEAWCS_PDA/pages/SetAddress/SetAddress.vue |   13 ++++++++++---
 1 files changed, 10 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..312373d 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,11 @@
 		methods: {
 			submit() {
 				this.$refs.uForm.validate().then(res => {
+					debugger;
+					if (!res) {
+							this.$t.message.toast('楠岃瘉涓嶉�氳繃');
+							return false;
+					} 
 					const ipAddress = {
 						WCSIP: this.valiFormData.WCSIP,
 						CZZJip: this.valiFormData.CZZJip,
@@ -91,10 +96,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