Update create-api-client.js
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -14,7 +14,8 @@ axios.defaults.headers = { | @@ -14,7 +14,8 @@ axios.defaults.headers = { | ||
14 | 14 | ||
15 | const errHandle = (error) => { | 15 | const errHandle = (error) => { |
16 | let res = error.response; | 16 | let res = error.response; |
17 | - | 17 | + |
18 | + console.log(error); | ||
18 | if (+res.status === 510) { | 19 | if (+res.status === 510) { |
19 | if (get(res, 'data.data.refer')) { | 20 | if (get(res, 'data.data.refer')) { |
20 | return window.location.href === get(res, 'data.data.refer'); | 21 | return window.location.href === get(res, 'data.data.refer'); |
-
Please register or login to post a comment