From 2cc4dfef234b47bef364edf798b5051a25f33217 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期五, 30 八月 2024 10:58:56 +0800 Subject: [PATCH] 1 --- WIDESEAWCS_Client/src/api/http.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WIDESEAWCS_Client/src/api/http.js b/WIDESEAWCS_Client/src/api/http.js index c959bc8..f73725b 100644 --- a/WIDESEAWCS_Client/src/api/http.js +++ b/WIDESEAWCS_Client/src/api/http.js @@ -86,11 +86,11 @@ function checkResponse (res) { //鍒锋柊token if (!res.headers) { - if (res.getResponseHeader("WIDESEAWCS_exp") == "1") { + if (res.getResponseHeader("wideseawcs_exp") == "1") { replaceToken(); } } - else if (res.headers.WIDESEAWCS_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