From b9740c5fc85e626cb455bc5bac685fa247839d00 Mon Sep 17 00:00:00 2001 From: wankeda <Administrator@DESKTOP-HAU3ST3> Date: 星期五, 18 四月 2025 10:04:38 +0800 Subject: [PATCH] 优化代码 --- 代码管理/NEWCode/WIDESEAWCS_Client/src/api/http.js | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Client/src/api/http.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Client/src/api/http.js" index c81ff8f..6270482 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Client/src/api/http.js" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Client/src/api/http.js" @@ -12,14 +12,17 @@ let loadingInstance; let loadingStatus = false; if (process.env.NODE_ENV == 'development') { - axios.defaults.baseURL = 'http://127.0.0.1:9291/'; + axios.defaults.baseURL = 'http://192.168.12.235:9291/'; + // axios.defaults.baseURL = 'http://127.0.0.1:9291/'; } else if (process.env.NODE_ENV == 'debug') { - axios.defaults.baseURL = 'http://127.0.0.1:8098/'; + axios.defaults.baseURL = 'http://192.168.12.235:8098/'; + // axios.defaults.baseURL = 'http://127.0.0.1:9291/'; } else if (process.env.NODE_ENV == 'production') { - axios.defaults.baseURL = 'http://115.159.85.185:9291/'; + axios.defaults.baseURL = 'http://192.168.12.235:9291/'; + // axios.defaults.baseURL = 'http://127.0.0.1:9291/'; } if (!axios.defaults.baseURL.endsWith('/')) { axios.defaults.baseURL+="/"; -- Gitblit v1.9.3