long
2021-04-08 c2b28e50d4abc170a55090850f4a6cdd4b06d9e7
src/layout/components/Sidebar/index.vue
@@ -64,7 +64,7 @@
      return menuData.filter((menu) => {
        // 仅有一级菜单
        if (!menu.children) {
          // isMock=1 全显示
          // mock模式 全显示
          if (isMock) return true
          // 不存在权限的话,默认显示
          // console.log(menu.auth, menu.auth ? !!authData[menu.auth] : true)
@@ -75,7 +75,7 @@
        if (menu.children.length) {
          // 递归
          menu.children = this.jun_filterAuth(menu.children, authData)
          // isMock=1 全显示
          // mock模式 全显示
          if (isMock) return true
          return menu.children.length
        }