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 @@