From d0f01f571918ae942349068776fa7fb70f3ab5cd Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期三, 28 八月 2024 16:20:18 +0800
Subject: [PATCH] 更新设备信息表从表导入问题

---
 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