From 342d8c020b5df6e254e73f8c010de1e666d6cf43 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Mon, 8 May 2017 15:51:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9AXMLHttpRequest?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E7=9A=84responseJSON=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Scripts/Longbow.Common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bootstrap.Admin/Scripts/Longbow.Common.js b/Bootstrap.Admin/Scripts/Longbow.Common.js index ea9c04e5..014d5af7 100644 --- a/Bootstrap.Admin/Scripts/Longbow.Common.js +++ b/Bootstrap.Admin/Scripts/Longbow.Common.js @@ -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' }); } }); }