Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
h5-communicate
frontend
Commits
8b4e576c
Commit
8b4e576c
authored
Jun 09, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
8aa664bd
Pipeline
#15213
failed with stages
in 36 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
workspace.xml
.idea/workspace.xml
+0
-0
Backlog.jsx
src/pages/Backlog/Backlog.jsx
+1
-1
instance.js
src/utils/instance.js
+4
-5
No files found.
.idea/workspace.xml
View file @
8b4e576c
This diff is collapsed.
Click to expand it.
src/pages/Backlog/Backlog.jsx
View file @
8b4e576c
...
@@ -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
;
...
...
src/utils/instance.js
View file @
8b4e576c
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment