From 1396c2c0b5ee91dcda22dd6648f1c30b2f81d646 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 5 Aug 2019 16:15:10 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=90=8E?= =?UTF-8?q?=E5=8F=B0ajax=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/public/static/admin.js b/public/static/admin.js index b5387289d..d9de3b168 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -193,10 +193,12 @@ $(function () { if (typeof headers === 'object') for (var i in headers) xhr.setRequestHeader(i, headers[i]); }, error: function (XMLHttpRequest) { layer.open({ - type: 2, area: ["800px", "500px"], content: 'javascript:void(0)', - title: XMLHttpRequest.status + ' - ' + XMLHttpRequest.statusText, - success: function ($element) { - $element.find('iframe')[0].contentWindow.document.write(XMLHttpRequest.responseText) + title: XMLHttpRequest.status + ' - ' + XMLHttpRequest.statusText + "(返回状态异常详情)", + type: 2, area: ["800px", "500px"], content: ['javascript:void(0)'], + success: function ($element, index) { + layer.full(index); + $element.find('iframe')[0].contentWindow.document.write(XMLHttpRequest.responseText); + $element.find('.layui-layer-title').addClass('font-s16 font-w7 text-center color-red') } }); if (parseInt(XMLHttpRequest.status) === 200) {