Update admin.js

This commit is contained in:
Anyon 2021-01-08 17:22:20 +08:00
parent 71493594ae
commit ba0511c6a9

View File

@ -769,8 +769,8 @@ $(function () {
$.msg.close(index); $.msg.close(index);
}, img.onload = function () { }, img.onload = function () {
layer.open({ layer.open({
type: 1, title: false, shadeClose: true, content: $(img), success: function (idx) { type: 1, title: false, shadeClose: true, content: $(img), success: function ($ele, idx) {
$.msg.close(index), (typeof done === 'function' && done(idx)) $.msg.close(index), (typeof done === 'function' && done($ele, idx))
}, area: area || '480px', closeBtn: 1, skin: 'layui-layer-nobg', end: function () { }, area: area || '480px', closeBtn: 1, skin: 'layui-layer-nobg', end: function () {
document.body.removeChild(img), (typeof close === 'function' && close()) document.body.removeChild(img), (typeof close === 'function' && close())
} }
@ -882,4 +882,4 @@ $(function () {
/*! 系统菜单表单页面初始化 */ /*! 系统菜单表单页面初始化 */
$.menu.listen(), $.vali.listen(), $.form.reInit($body); $.menu.listen(), $.vali.listen(), $.form.reInit($body);
}); });