From 2f75b4c0a67ccc3a443e7cc4f2f0f909defd9a92 Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期五, 01 十一月 2024 09:49:23 +0800
Subject: [PATCH] 版本更新
---
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