From a5c29dd63620e688605dba7f1ac16c7b79df46e1 Mon Sep 17 00:00:00 2001 From: sassassin <530521314@qq.com> Date: Mon, 20 Jul 2020 23:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=A1=B6=E9=83=A8=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/layui/lay/extends/pearAdmin.js | 8 ++++---- index.html | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/component/layui/lay/extends/pearAdmin.js b/component/layui/lay/extends/pearAdmin.js index 9040853..43b0622 100644 --- a/component/layui/lay/extends/pearAdmin.js +++ b/component/layui/lay/extends/pearAdmin.js @@ -276,11 +276,11 @@ layui.define(['table', 'jquery', 'element', 'form', 'pearAuth', 'pearTab', 'pear } }; - $("body").on("click", ".pearson", function() { + $("body").on("click", ".navMenu", function() { pearTab.addTabOnlyByElem("content", { - id: 111, - title: "个人信息", - url: "view/system/person.html", + id: $(this).attr("data-id"), + title: $(this).text(), + url: $(this).attr("data-url"), close: true }) }) diff --git a/index.html b/index.html index 380417d..80a19eb 100644 --- a/index.html +++ b/index.html @@ -34,9 +34,9 @@