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) => {
setLoading(true)
axiosRequest({
method: 'post',
url: '/idtAppServiceV6/getWaitDealList',
url: '/idtAppServiceV6/getWaitDealList&tableids=1',
}).then(res => {
setLoading(false);
let result = res.rows ? data.concat(res.rows) : data;
......
......@@ -47,7 +47,7 @@ export const createAPI = (baseURL) => {
headers,
}, conf.opts))
.then(function (response) {
console.log(response)
response = response.data;
if (!response || !response.data) { console.log('response出错, 无返回数据!', response); return false; };
if (response.data && response.data.errorMessage) {
......@@ -55,12 +55,11 @@ export const createAPI = (baseURL) => {
return false;
}
// 保存到本地
if (response && response.data && response.data.data && response.data.data.token) {
console.log(response.data.data.token)
if (response && response.data && response.data.token) {
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) {
......
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