From d9c99e0480b4910cdb134778dd5c314b35ec4cf2 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期一, 29 九月 2025 10:05:23 +0800 Subject: [PATCH] 1 --- 项目代码/WMS/WIDESEA_WMSClient/src/api/http.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/api/http.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/api/http.js" index bd86d8b..85b460f 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/api/http.js" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/api/http.js" @@ -12,14 +12,14 @@ let loadingInstance; let loadingStatus = false; if (process.env.NODE_ENV == 'development') { - axios.defaults.baseURL = 'http://127.0.0.1:9290/'; + axios.defaults.baseURL = window.webConfig.webApiBaseUrl; } else if (process.env.NODE_ENV == 'debug') { axios.defaults.baseURL = 'http://127.0.0.1:8098/'; } else if (process.env.NODE_ENV == 'production') { - axios.defaults.baseURL = 'http://115.159.85.185:9291/'; + axios.defaults.baseURL = window.webConfig.webApiProduction; } if (!axios.defaults.baseURL.endsWith('/')) { axios.defaults.baseURL+="/"; @@ -221,7 +221,7 @@ } } } catch (error) { - console.log(error); + console.log(111); Message.error({ showClose: true, message: responseText, @@ -282,6 +282,7 @@ var xhr = createXHR(); xhr.onreadystatechange = function () { if (xhr.status == 403 || xhr.status == 401) { + console.log(11) redirect(xhr.responseText); return; } -- Gitblit v1.9.3