浏览代码

修复遮罩层bug

笔下光年 5 年之前
父节点
当前提交
56d4f592c9
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      js/index.min.js

+ 7 - 5
js/index.min.js

@@ -21,11 +21,13 @@ jQuery( function() {
         } else {
             $( '.lyear-mask-modal' ).remove();
         }
-        $(document).on('click', '.lyear-mask-modal', function() {
-            $( this ).remove();
-        	$('.lyear-layout-sidebar').toggleClass('lyear-aside-open');
-            $('body').toggleClass('lyear-layout-sidebar-close');
-        });
+    });
+  
+    // 遮罩层
+    $(document).on('click', '.lyear-mask-modal', function() {
+        $( this ).remove();
+    	$('.lyear-layout-sidebar').toggleClass('lyear-aside-open');
+        $('body').toggleClass('lyear-layout-sidebar-close');
     });
     
 	// 侧边栏导航