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 | 13 ++++++++++++- 1 files changed, 12 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 0cc6aee..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" @@ -17,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