Skip to content

Commit

Permalink
修复移动端模块切换不弹出左侧菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongshaofa committed Apr 3, 2020
1 parent d3f94a8 commit 6eb9ee5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/lay-module/layuimini/miniMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,11 @@ layui.define(["element", "laytpl","jquery"], function (exports) {
*/
$('body').on('click', '.layuimini-header-menu.layuimini-mobile-show dd', function () {
var loading = layer.load(0, {shade: false, time: 2 * 1000});
$('.layuimini-site-mobile').trigger("click");
element.init();
var check = $('.layuimini-tool [data-side-fold]').attr('data-side-fold');
if(check === "1"){
$('.layuimini-site-mobile').trigger("click");
element.init();
}
layer.close(loading);
});
},
Expand Down

0 comments on commit 6eb9ee5

Please sign in to comment.