Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

saas / scrm-micro-activity

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • scrm-micro-activity
  • src
  • common
  • util.js
  • 杨明's avatar
    fixed · 57810959
    杨明 committed Jul 28, 2022
    57810959 Browse Files
util.js 417 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
export const Util = {
  isShowBtn: function(value) {
    let isShowStatus = false
    const menu = JSON.parse(sessionStorage['SCRM_BASE_MENULIST'])
    menuLevel(menu)
    function menuLevel(item) {
      item.forEach(itm => {
        if (itm.path == value) {
          isShowStatus = true
        }
        if (itm.children) {
          menuLevel(itm.children)
        }
      })
    }
    return isShowStatus
  }
}