diff --git a/component/layui/lay/extends/pearAdmin.js b/component/layui/lay/extends/pearAdmin.js index 904085329389b554b9b449cf3e2994ce15bfb323..43b06228278e27d56f9483c8f9c5dee9b8261934 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 380417d5cc018b5090fc03e7bba757d18910664e..80a19ebc080a10a7959b06d427d2a88a5f919016 100644 --- a/index.html +++ b/index.html @@ -34,9 +34,9 @@
  • 就眠仪式
    -
    个人信息
    -
    安全配置
    -
    打开百度
    +
    个人信息
    +
    安全配置
    +
    打开百度
    注销登陆