diff --git a/component/pear/module/admin.js b/component/pear/module/admin.js index f44d66c..a4efb62 100644 --- a/component/pear/module/admin.js +++ b/component/pear/module/admin.js @@ -33,7 +33,7 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'], this.menuRender = function(param) { sideMenu = pearMenu.render({ elem: 'sideMenu', - async: true, + async: param.menu.async != undefined ? param.menu.async : true, theme: "dark-theme", height: '100%', control: param.menu.control ? 'control' : false, // control diff --git a/component/pear/module/menu.js b/component/pear/module/menu.js index 0942471..93a46af 100644 --- a/component/pear/module/menu.js +++ b/component/pear/module/menu.js @@ -13,7 +13,7 @@ layui.define(['table', 'jquery', 'element'], function(exports) { //默认配置值 var option = { elem: opt.elem, - async: opt.async ? opt.async : false, + async: opt.async, parseData: opt.parseData, url: opt.url, defaultOpen: opt.defaultOpen,