Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4c5b2347
authored
Jun 15, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
911c3e98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
package.json
src/api/http.js
package.json
View file @
4c5b2347
...
...
@@ -38,7 +38,8 @@
},
"browserslist"
:
[
"> 1%"
,
"last 2 versions"
,
"last 6 versions"
,
"Android >= 3.2"
,
"not dead"
]
}
src/api/http.js
View file @
4c5b2347
...
...
@@ -24,7 +24,10 @@ http.interceptors.response.use(
Toast
.
clear
();
console
.
log
(
'response='
,
response
);
if
(
response
.
error
==
400
||
response
.
status
==
400
)
{
Toast
.
fail
(
'授权失败!'
);
Toast
.
fail
({
message
:
'授权失败!'
,
position
:{
top
:
200
}
});
}
let
{
data
}
=
response
;
if
(
!
data
.
errcode
)
{
...
...
@@ -51,7 +54,8 @@ http.interceptors.response.use(
Toast
.
fail
({
message
:
'授权失败!'
,
duration
:
0
,
overlay
:
true
overlay
:
true
,
position
:{
top
:
200
}
})
}
...
...
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