From 171c264d06cdeda6010475c2603ddd3a9c920226 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 30 Aug 2018 12:09:01 +0800 Subject: [PATCH] hideChildren => hidenChildrenInMenu --- config/router.config.js | 2 +- src/components/SiderMenu/BaseMenu.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/router.config.js b/config/router.config.js index f1a17ba0..291d5d0f 100644 --- a/config/router.config.js +++ b/config/router.config.js @@ -42,7 +42,7 @@ module.exports = [ path: '/form/step-form', name: 'stepform', component: './Forms/StepForm', - hideChildren: true, + hideChildrenInMenu: true, routes: [ { path: '/form/step-form', diff --git a/src/components/SiderMenu/BaseMenu.js b/src/components/SiderMenu/BaseMenu.js index a05f4296..e1849bf9 100644 --- a/src/components/SiderMenu/BaseMenu.js +++ b/src/components/SiderMenu/BaseMenu.js @@ -77,8 +77,8 @@ export default class BaseMenu extends PureComponent { * get SubMenu or Item */ getSubMenuOrItem = item => { - // doc: add hideChildren - if (item.children && !item.hideChildren && item.children.some(child => child.name)) { + // doc: add hideChildrenInMenu + if (item.children && !item.hideChildrenInMenu && item.children.some(child => child.name)) { const name = formatMessage({ id: item.locale }); return (