From 4def1b383885aecdf55623381a914ef5bcd43cd0 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期四, 31 十月 2024 14:33:11 +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