From 8374fcfd016f1c83ba70c989ad49b8cf6fba0327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Tue, 30 Jun 2020 11:33:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/layui/lay/extends/pearAdmin.js | 2 +- index.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/component/layui/lay/extends/pearAdmin.js b/component/layui/lay/extends/pearAdmin.js index 675946a..b39b04b 100644 --- a/component/layui/lay/extends/pearAdmin.js +++ b/component/layui/lay/extends/pearAdmin.js @@ -51,7 +51,7 @@ layui.define(['table', 'jquery', 'element', 'form', 'pearAuth', 'pearTab', 'pear this.menuRender = function(option) { sideMenu = pearMenu.render({ elem: 'sideMenu', //依赖容器 - async: option.async, //数据形式 + async: true, //数据形式 theme: option.theme, height: '100%', control: option.control ? 'control' : false, // control diff --git a/index.html b/index.html index 83682ea..7c247d4 100644 --- a/index.html +++ b/index.html @@ -81,7 +81,6 @@ theme: "dark-theme", // 默 认 主 题 样 式 dark-theme 默认主题 light-theme 亮主题 index: 'view/console/console1.html', // 默 认 加 载 主 页 data: 'admin/data/menu.json', // 菜 单 数 据 加 载 地 址 - async: true,//加 载 菜 单 数 据 select: '0', // 默 认 选 中 菜 单 项 notice: 'admin/data/notice.json', // 消 息 列 表 数 据 auth: 'admin/data/permission.json' // 前端权限限制,false 关闭该功能