mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修复$.form.load失败时,loading未关闭
This commit is contained in:
parent
08ed1243e7
commit
3b06623226
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user