From 65b5b0ced6d04f773002908cb8c0720540f34907 Mon Sep 17 00:00:00 2001 From: wanshenmean <cathay_xy@163.com> Date: 星期四, 10 四月 2025 09:20:17 +0800 Subject: [PATCH] 1 --- 代码管理/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 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..9b5c711 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,4 @@ -let baseUrl = 'http://127.0.0.1:9291' +let baseUrl = 'http://192.168.0.191:9291' const install = (Vue, vm) => { // 姝や负鑷畾涔夐厤缃弬鏁帮紝鍏蜂綋鍙傛暟瑙佷笂鏂硅鏄� @@ -16,7 +16,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