Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
2019-05-28 15:31:47 +0800
Commit
8de46bb978c159960f034f8315e0096c29e3ced4
1 parent
01a748d7
Update create-api-client.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
apps/common/create-api-client.js
apps/common/create-api-client.js
View file @
8de46bb
...
...
@@ -14,7 +14,8 @@ axios.defaults.headers = {
const
errHandle
=
(
error
)
=>
{
let
res
=
error
.
response
;
console
.
log
(
error
);
if
(
+
res
.
status
===
510
)
{
if
(
get
(
res
,
'data.data.refer'
))
{
return
window
.
location
.
href
===
get
(
res
,
'data.data.refer'
);
...
...
Please
register
or
login
to post a comment