diff --git a/modules/core/src/main/resources/views/modules/sys/officeIndex.html b/modules/core/src/main/resources/views/modules/sys/officeIndex.html
index d15fd9ed..87ae8704 100644
--- a/modules/core/src/main/resources/views/modules/sys/officeIndex.html
+++ b/modules/core/src/main/resources/views/modules/sys/officeIndex.html
@@ -26,7 +26,7 @@
diff --git a/modules/core/src/main/resources/views/themes/default/modules/sys/sysIndex/topMenu.html b/modules/core/src/main/resources/views/themes/default/modules/sys/sysIndex/topMenu.html
index f5e3d27d..d1f089c4 100644
--- a/modules/core/src/main/resources/views/themes/default/modules/sys/sysIndex/topMenu.html
+++ b/modules/core/src/main/resources/views/themes/default/modules/sys/sysIndex/topMenu.html
@@ -60,10 +60,17 @@
if(js.trim($("#leftMenu-" + code).text()) == ''){
$('.main-sidebar').hide();
$('.content-wrapper').css("cssText","margin-left:0!important;");
+ if (window.initMenu && $(window).width() <= 767 && $('body').hasClass('sidebar-open')){
+ $('[data-toggle="push-menu"]').click();
+ }
}else{
$('.main-sidebar').show();
$('.content-wrapper').css('margin-left', '');
+ if (window.initMenu && $(window).width() <= 767 && !$('body').hasClass('sidebar-open')){
+ $('[data-toggle="push-menu"]').click();
+ }
}
+ window.initMenu = true;
setTimeout(function(){
$(window).resize();
},200);