Browse Source

let `hideInBreadcrumb` available in menu.js

pull/1115/merge
ddcat1115 9 years ago
parent
commit
148aaa8935
  1. 1
      src/common/menu.js
  2. 1
      src/common/router.js

1
src/common/menu.js

@ -13,6 +13,7 @@ const menuData = [{
}, { }, {
name: '工作台', name: '工作台',
path: 'workplace', path: 'workplace',
// hideInBreadcrumb: true,
// hideInMenu: true, // hideInMenu: true,
}], }],
}, { }, {

1
src/common/router.js

@ -192,6 +192,7 @@ export const getRouterData = (app) => {
...router, ...router,
name: router.name || menuItem.name, name: router.name || menuItem.name,
authority: router.authority || menuItem.authority, authority: router.authority || menuItem.authority,
hideInBreadcrumb: router.hideInBreadcrumb || menuItem.hideInBreadcrumb,
}; };
routerData[path] = router; routerData[path] = router;
}); });

Loading…
Cancel
Save