From 8f625ca00ddb27ee8cd86c805c21f7f2590da63e Mon Sep 17 00:00:00 2001 From: bobi Date: Sun, 26 Aug 2018 18:33:50 +0800 Subject: [PATCH] =?UTF-8?q?tab=E9=80=89=E9=A1=B9=E5=8D=A1=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=9B=BE=E6=A0=87+=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/okadmin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/okadmin.js b/js/okadmin.js index 90a8e2a..97d6a94 100644 --- a/js/okadmin.js +++ b/js/okadmin.js @@ -27,7 +27,10 @@ layui.use(['element', 'layer'], function () { * 点击左边菜单在右边添加选项卡 */ $(".layui-nav-child").find("dd").click(function () { - var title = $(this).text(); + // 纯文字 + // var title = $(this).text(); + // 图标+文字 + var title = $(this).find("a").html(); var path = $(this).children('a').attr('path'); var tabId = $(this).children('a').attr('tab-id'); // 去重复选项卡