mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
Update admin.js
This commit is contained in:
parent
ab8c89518f
commit
32b45259ce
@ -241,7 +241,12 @@ $(function () {
|
||||
return url ? location.href = url : $.form.reload();
|
||||
} else return (parseInt(ret.code) === 1) ? this.success(msg, time, function () {
|
||||
url ? location.href = url : $.form.reload();
|
||||
that.close($.msg.mdx.length > 0 ? $.msg.mdx.pop() : null);
|
||||
that.close(function (idx) {
|
||||
while ($.msg.mdx.length > 0 && (idx = $.msg.mdx.pop())) {
|
||||
if ($('#layui-layer' + idx).size()) return idx;
|
||||
}
|
||||
return null;
|
||||
}());
|
||||
}) : this.error(msg, 3, function () {
|
||||
url ? location.href = url : '';
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user