Commit 8b4e576c authored by 熊成伟's avatar 熊成伟

debug

parent 8aa664bd
Pipeline #15213 failed with stages
in 36 seconds
This diff is collapsed.
...@@ -21,7 +21,7 @@ const Backlog = (props) => { ...@@ -21,7 +21,7 @@ const Backlog = (props) => {
setLoading(true) setLoading(true)
axiosRequest({ axiosRequest({
method: 'post', method: 'post',
url: '/idtAppServiceV6/getWaitDealList', url: '/idtAppServiceV6/getWaitDealList&tableids=1',
}).then(res => { }).then(res => {
setLoading(false); setLoading(false);
let result = res.rows ? data.concat(res.rows) : data; let result = res.rows ? data.concat(res.rows) : data;
......
...@@ -47,7 +47,7 @@ export const createAPI = (baseURL) => { ...@@ -47,7 +47,7 @@ export const createAPI = (baseURL) => {
headers, headers,
}, conf.opts)) }, conf.opts))
.then(function (response) { .then(function (response) {
console.log(response) response = response.data;
if (!response || !response.data) { console.log('response出错, 无返回数据!', response); return false; }; if (!response || !response.data) { console.log('response出错, 无返回数据!', response); return false; };
if (response.data && response.data.errorMessage) { if (response.data && response.data.errorMessage) {
...@@ -55,12 +55,11 @@ export const createAPI = (baseURL) => { ...@@ -55,12 +55,11 @@ export const createAPI = (baseURL) => {
return false; return false;
} }
// 保存到本地 // 保存到本地
if (response && response.data && response.data.data && response.data.data.token) { if (response && response.data && response.data.token) {
console.log(response.data.data.token)
defaultHeaders = { defaultHeaders = {
token: response.data.data.token, token: response.data.access_token,
} }
localStorage.setItem("token", response.data.data.token); localStorage.setItem("token", response.data.access_token);
} }
if (response.data) { if (response.data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment