From e692b8c296bae952a810688f700b659ae8240a5c Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期四, 10 四月 2025 11:00:10 +0800
Subject: [PATCH] 1

---
 代码管理/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js"
index 186e70a..87b2a45 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js"
@@ -1,4 +1,5 @@
 let baseUrl = 'http://127.0.0.1:9291'
+// let baseUrl = 'http://192.168.30.240:9090'
 const install = (Vue, vm) => {
 
 	// 姝や负鑷畾涔夐厤缃弬鏁帮紝鍏蜂綋鍙傛暟瑙佷笂鏂硅鏄�
@@ -16,7 +17,18 @@
 		if (config.url.includes('http://') || config.url.includes('https://')) {
 			config.baseURL = '';
 		} else {
-			config.baseURL = baseUrl;
+			uni.getStorage({
+				key: 'storage_key_ipAddress',
+				success: (res) => {
+					debugger;
+					console.log(res.data.WCSIP);
+					config.baseURL = res.data.WCSIP;
+				},
+				fail: (err) => {
+					console.log("娌℃湁鎵惧埌瀛樺偍鐨処P鍦板潃,浣跨敤榛樿BaseURL")
+					config.baseURL = baseUrl;
+				},
+			});
 		}
 
 		config.header.Token = 'xxxxxx';

--
Gitblit v1.9.3