From a21cd410e22e1315a49c0edf4ac18616a0257596 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: Thu, 16 Jul 2020 13:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=8E=92=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/module/menu.js | 15 ++++++--------- component/pear/pear.all.js | 23 +++++++++++++++-------- login.html | 18 +++++++++--------- 3 files changed, 30 insertions(+), 26 deletions(-) diff --git a/component/pear/module/menu.js b/component/pear/module/menu.js index dfa1ead..3fa0829 100644 --- a/component/pear/module/menu.js +++ b/component/pear/module/menu.js @@ -40,7 +40,7 @@ layui.define(['table', 'jquery', 'element'], function(exports) { } } - if(option.data.length > 0){ + if (option.data.length > 0) { if (option.control != false) { createMenuAndControl(option); @@ -83,9 +83,7 @@ layui.define(['table', 'jquery', 'element'], function(exports) { var domss = hash(doms); if (domss.text() != '') { - - data['menuPath'] = domss.find("span").text() + " / " + data['menuPath']; - + data['menuPath'] = domss.find("span").text() + " / " + data['menuPath']; } var domsss = hash(domss); @@ -95,7 +93,6 @@ layui.define(['table', 'jquery', 'element'], function(exports) { data['menuPath'] = domsss.find("span").text() + " / " + data['menuPath']; } - clickEvent(dom, data); }); @@ -247,7 +244,7 @@ layui.define(['table', 'jquery', 'element'], function(exports) { '" ' + target + '>' + item.title + ''; } else if (item.type == 1) { - + // 创 建 菜 单 结 构 content += ' -
-