提一嘴

develop
就眠仪式 2020-09-30 15:11:18 +08:00
parent c4884c2b9b
commit e9424e5cd9
3 changed files with 38 additions and 37 deletions

View File

@ -44,8 +44,7 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'],
parseData: false, parseData: false,
change:function(){ change:function(){
compatible(); compatible();
}, },done(){
done() {
sideMenu.selectItem(param.menu.select); sideMenu.selectItem(param.menu.select);
} }
}) })
@ -136,8 +135,8 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'],
this.keepLoad = function(param) { this.keepLoad = function(param) {
compatible() compatible()
setTimeout(function() { setTimeout(function() {
$(".loader-main").fadeOut(400); $(".loader-main").fadeOut(200);
}, 2000) }, param.other.keepLoad)
} }
this.themeRender = function(option) { this.themeRender = function(option) {
@ -435,3 +434,4 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'],
exports('admin', pearAdmin); exports('admin', pearAdmin);
}) })

View File

@ -70,9 +70,7 @@
layui.use(['admin'], function() { layui.use(['admin'], function() {
var admin = layui.admin; var admin = layui.admin;
admin.render({ admin.render();
currentUser: "admin"
});
}) })
</script> </script>
</body> </body>

View File

@ -63,5 +63,8 @@
"title": "问答社区", "title": "问答社区",
"href": "http://forum.pearadmin.com/" "href": "http://forum.pearadmin.com/"
} }
] ],
"other": {
"keepLoad": 1200
}
} }