From 9ca96199d92168fe221dda9aba56f55520a561d8 Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期二, 29 十月 2024 17:30:59 +0800
Subject: [PATCH] 1
---
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 c959bc8..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("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