From 148aaa89355b04e98eb8a256a80e7d0ed159806e Mon Sep 17 00:00:00 2001 From: ddcat1115 Date: Sat, 24 Mar 2018 13:50:30 +0800 Subject: [PATCH] let `hideInBreadcrumb` available in menu.js --- src/common/menu.js | 1 + src/common/router.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/common/menu.js b/src/common/menu.js index 50f8a464..a5da89ad 100644 --- a/src/common/menu.js +++ b/src/common/menu.js @@ -13,6 +13,7 @@ const menuData = [{ }, { name: '工作台', path: 'workplace', + // hideInBreadcrumb: true, // hideInMenu: true, }], }, { diff --git a/src/common/router.js b/src/common/router.js index c27e9d4d..60235976 100644 --- a/src/common/router.js +++ b/src/common/router.js @@ -192,6 +192,7 @@ export const getRouterData = (app) => { ...router, name: router.name || menuItem.name, authority: router.authority || menuItem.authority, + hideInBreadcrumb: router.hideInBreadcrumb || menuItem.hideInBreadcrumb, }; routerData[path] = router; }); -- GitLab