From aa95e558443ce2b2f5cc1c3334c0ad2f13d32742 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: Mon, 27 Jul 2020 15:37:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=8F=9C=E5=8D=95=20?= =?UTF-8?q?=E4=B8=8E=20Content=20=E5=86=85=E5=AE=B9=E5=8C=BA=E5=9F=9F=20?= =?UTF-8?q?=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/module/admin.js | 18 ++++++++++++++++-- index.html | 4 ++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/component/pear/module/admin.js b/component/pear/module/admin.js index f6187c1..82f49f8 100644 --- a/component/pear/module/admin.js +++ b/component/pear/module/admin.js @@ -117,8 +117,6 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'], }, 600) }) sideMenu.click(function(dom, data) { - console.log(data.menuUrl); - bodyFrame.changePage(data.menuUrl, data.menuPath, true); compatible() }) @@ -236,6 +234,22 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'], } }); + + $("body").on("click",'[menu-id]',function(){ + + if(getData().tab.muiltTab){ + bodyTab.addTabOnly({ + id: $(this).attr("menu-id"), + title: $(this).attr("menu-title"), + url: $(this).attr("menu-url"), + icon: "", + close: true + }, 300); + + }else{ + bodyFrame.changePage($(this).attr("menu-url"), "", true); + } + }) function compatible() { if ($(window).width() <= 768) { diff --git a/index.html b/index.html index a906535..dbface6 100644 --- a/index.html +++ b/index.html @@ -31,8 +31,8 @@ 就眠仪式
-
基本资料
-
安全设置
+
基本资料
+
安全设置
注销登录