1
wankeda
2025-04-10 e692b8c296bae952a810688f700b659ae8240a5c
代码管理/NEWCode/WIDESEAWCS_PDA/common/http.interceptor.js
@@ -17,7 +17,18 @@
      if (config.url.includes('http://') || config.url.includes('https://')) {
         config.baseURL = '';
      } else {
         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';