优化后台菜单切换

pull/460/MERGE
Karson 2023-08-30 16:24:11 +08:00
parent 940e9a0814
commit 4aa2666c98
1 changed files with 7 additions and 5 deletions

View File

@ -333,11 +333,13 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
// 切换菜单栏
$(document).on("click", ".sidebar-toggle", function () {
setTimeout(function(){
var value = $("body").hasClass("sidebar-collapse") ? 1 : 0;
setTimeout(function () {
$(window).trigger("resize");
}, 300);
createCookie('sidebar_collapse', value);
}, 0);
});
// 切换多级菜单