[更新]修复$.form.load失败时,loading未关闭

This commit is contained in:
Anyon 2017-08-30 10:09:39 +08:00
parent 08ed1243e7
commit 3b06623226

View File

@ -137,13 +137,16 @@ define(['jquery'], function () {
type: type || 'GET', url: $.menu.parseUri(url), data: data || {}, type: type || 'GET', url: $.menu.parseUri(url), data: data || {},
statusCode: { statusCode: {
404: function () { 404: function () {
$.msg.close(dialogIndex);
$.msg.tips(self.errMsg.replace('{status}', 'E404 - ')); $.msg.tips(self.errMsg.replace('{status}', 'E404 - '));
}, },
500: function () { 500: function () {
$.msg.close(dialogIndex);
$.msg.tips(self.errMsg.replace('{status}', 'E500 - ')); $.msg.tips(self.errMsg.replace('{status}', 'E500 - '));
} }
}, },
error: function (XMLHttpRequest, textStatus, errorThrown) { error: function (XMLHttpRequest, textStatus, errorThrown) {
$.msg.close(dialogIndex);
$.msg.tips(self.errMsg.replace('{status}', 'E' + textStatus + ' - ')); $.msg.tips(self.errMsg.replace('{status}', 'E' + textStatus + ' - '));
}, },
success: function (res) { success: function (res) {