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) {