修改BUG:XMLHttpRequest对象的responseJSON增加判断

This commit is contained in:
Argo-Lenovo 2017-05-08 15:51:17 +08:00
parent 83f73f2a76
commit 342d8c020b
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@
success(result);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
lgbSwal({ title: errorThrown, text: XMLHttpRequest.responseJSON.Message, type: 'error' });
if (XMLHttpRequest.responseJSON) lgbSwal({ title: errorThrown, text: XMLHttpRequest.responseJSON.Message, type: 'error' });
}
});
}