feat: There is no way the
This commit is contained in:
@@ -61,7 +61,7 @@ _axios.interceptors.response.use(
|
|||||||
// IE 8-9
|
// IE 8-9
|
||||||
if (res.data == null && res.config.responseType === 'json' && res.request.responseText != null) {
|
if (res.data == null && res.config.responseType === 'json' && res.request.responseText != null) {
|
||||||
try {
|
try {
|
||||||
res.data = JSON.parse(response.request.responseText);
|
res.data = JSON.parse(res.request.responseText);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// ignored
|
// ignored
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ service.interceptors.response.use(
|
|||||||
// IE 8-9
|
// IE 8-9
|
||||||
if (res.data == null && res.config.responseType === 'json' && res.request.responseText != null) {
|
if (res.data == null && res.config.responseType === 'json' && res.request.responseText != null) {
|
||||||
try {
|
try {
|
||||||
res.data = JSON.parse(response.request.responseText);
|
res.data = JSON.parse(res.request.responseText);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// ignored
|
// ignored
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user