Commit 171c264d authored by afc163's avatar afc163 Committed by 偏右

hideChildren => hidenChildrenInMenu

parent e235ca5d
...@@ -42,7 +42,7 @@ module.exports = [ ...@@ -42,7 +42,7 @@ module.exports = [
path: '/form/step-form', path: '/form/step-form',
name: 'stepform', name: 'stepform',
component: './Forms/StepForm', component: './Forms/StepForm',
hideChildren: true, hideChildrenInMenu: true,
routes: [ routes: [
{ {
path: '/form/step-form', path: '/form/step-form',
......
...@@ -77,8 +77,8 @@ export default class BaseMenu extends PureComponent { ...@@ -77,8 +77,8 @@ export default class BaseMenu extends PureComponent {
* get SubMenu or Item * get SubMenu or Item
*/ */
getSubMenuOrItem = item => { getSubMenuOrItem = item => {
// doc: add hideChildren // doc: add hideChildrenInMenu
if (item.children && !item.hideChildren && item.children.some(child => child.name)) { if (item.children && !item.hideChildrenInMenu && item.children.some(child => child.name)) {
const name = formatMessage({ id: item.locale }); const name = formatMessage({ id: item.locale });
return ( return (
<SubMenu <SubMenu
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment