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
f6e3e971
Commit
f6e3e971
authored
Jun 15, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
c8f1122a
Pipeline
#15358
passed with stages
in 55 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
instance.js
src/utils/instance.js
+2
-1
No files found.
src/utils/instance.js
View file @
f6e3e971
...
@@ -52,7 +52,8 @@ export const createAPI = (baseURL) => {
...
@@ -52,7 +52,8 @@ export const createAPI = (baseURL) => {
// console.log(response)
// console.log(response)
if
(
!
response
||
!
response
.
data
)
{
if
(
!
response
||
!
response
.
data
)
{
response
.
status
===
'failure'
&&
(
window
.
location
.
href
=
'/login'
)
// response.status === 'failure' && (window.location.href = '/login')
response
.
code
===
'idt-core-500'
&&
(
window
.
location
.
href
=
'/login'
)
console
.
log
(
'response出错, 无返回数据!'
,
response
);
return
false
;
console
.
log
(
'response出错, 无返回数据!'
,
response
);
return
false
;
};
};
if
(
response
.
data
&&
response
.
data
.
errorMessage
)
{
if
(
response
.
data
&&
response
.
data
.
errorMessage
)
{
...
...
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