From 4383bfcc87a7726f39391eb78d830aca160d8efd Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期一, 30 九月 2024 10:07:52 +0800 Subject: [PATCH] bug修复 --- WIDESEAWCS_Client/src/api/http.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/WIDESEAWCS_Client/src/api/http.js b/WIDESEAWCS_Client/src/api/http.js index 7db9d97..c81ff8f 100644 --- a/WIDESEAWCS_Client/src/api/http.js +++ b/WIDESEAWCS_Client/src/api/http.js @@ -19,7 +19,7 @@ } else if (process.env.NODE_ENV == 'production') { - axios.defaults.baseURL = 'http://127.0.0.1:8098/'; + axios.defaults.baseURL = 'http://115.159.85.185:9291/'; } if (!axios.defaults.baseURL.endsWith('/')) { axios.defaults.baseURL+="/"; @@ -86,11 +86,11 @@ function checkResponse (res) { //鍒锋柊token if (!res.headers) { - if (res.getResponseHeader("vol_exp") == "1") { + if (res.getResponseHeader("wideseawcs_exp") == "1") { replaceToken(); } } - else if (res.headers.vol_exp == "1") { + else if (res.headers.wideseawcs_exp == "1") { replaceToken(); } } @@ -143,6 +143,7 @@ return new Promise((resolve, reject) => { axios.get(url, config) .then(response => { + // console.log(response) resolve(response.data) }, err => { reject(err) -- Gitblit v1.9.3