Update admin.js

This commit is contained in:
Anyon 2019-08-05 16:22:46 +08:00
parent 1396c2c0b5
commit bb69b2e509

View File

@ -192,7 +192,7 @@ $(function () {
if (typeof Pace === 'object') Pace.restart(); if (typeof Pace === 'object') Pace.restart();
if (typeof headers === 'object') for (var i in headers) xhr.setRequestHeader(i, headers[i]); if (typeof headers === 'object') for (var i in headers) xhr.setRequestHeader(i, headers[i]);
}, error: function (XMLHttpRequest) { }, error: function (XMLHttpRequest) {
layer.open({ if (XMLHttpRequest.responseText.indexOf('exception') > -1) layer.open({
title: XMLHttpRequest.status + ' - ' + XMLHttpRequest.statusText + "(返回状态异常详情)", title: XMLHttpRequest.status + ' - ' + XMLHttpRequest.statusText + "(返回状态异常详情)",
type: 2, area: ["800px", "500px"], content: ['javascript:void(0)'], type: 2, area: ["800px", "500px"], content: ['javascript:void(0)'],
success: function ($element, index) { success: function ($element, index) {