mirror of https://gitee.com/karson/fastadmin.git
优化后台菜单切换
parent
940e9a0814
commit
4aa2666c98
|
|
@ -333,11 +333,13 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
|
||||||
|
|
||||||
// 切换菜单栏
|
// 切换菜单栏
|
||||||
$(document).on("click", ".sidebar-toggle", function () {
|
$(document).on("click", ".sidebar-toggle", function () {
|
||||||
var value = $("body").hasClass("sidebar-collapse") ? 1 : 0;
|
setTimeout(function(){
|
||||||
setTimeout(function () {
|
var value = $("body").hasClass("sidebar-collapse") ? 1 : 0;
|
||||||
$(window).trigger("resize");
|
setTimeout(function () {
|
||||||
}, 300);
|
$(window).trigger("resize");
|
||||||
createCookie('sidebar_collapse', value);
|
}, 300);
|
||||||
|
createCookie('sidebar_collapse', value);
|
||||||
|
}, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
// 切换多级菜单
|
// 切换多级菜单
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue