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
99dc0b6af7
commit
825448811d
@ -806,7 +806,7 @@ $(function () {
|
||||
}
|
||||
});
|
||||
};
|
||||
return (img.src = src), defer;
|
||||
return (img.src = src), defer.resolve();
|
||||
};
|
||||
|
||||
/*! 注册 data-phone-view 事件行为 */
|
||||
@ -902,6 +902,11 @@ $(function () {
|
||||
})(code)
|
||||
};
|
||||
|
||||
/*! 延时关闭加载动画 */
|
||||
window.addEventListener('load', function () {
|
||||
$('body>.layui-page-loader').fadeOut();
|
||||
}, true);
|
||||
|
||||
/*! 图片加载异常处理 */
|
||||
document.addEventListener('error', function (event) {
|
||||
var elem = event.target;
|
||||
@ -910,11 +915,6 @@ $(function () {
|
||||
}
|
||||
}, true);
|
||||
|
||||
/*! 延时关闭加载动画 */
|
||||
setTimeout(function () {
|
||||
$('.layui-page-loader').fadeOut();
|
||||
}, 800);
|
||||
|
||||
/*! 系统菜单表单页面初始化 */
|
||||
$.menu.listen(), $.vali.listen(), $.form.reInit($body);
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user