From df5eb7e478122d54284350926beaa8ab1840cb84 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 13 九月 2024 10:14:46 +0800 Subject: [PATCH] # --- zy-acs-flow/src/layout/MyMenu.jsx | 28 +++++++++++++++------------- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/zy-acs-flow/src/layout/MyMenu.jsx b/zy-acs-flow/src/layout/MyMenu.jsx index b996e97..bfbe11f 100644 --- a/zy-acs-flow/src/layout/MyMenu.jsx +++ b/zy-acs-flow/src/layout/MyMenu.jsx @@ -60,19 +60,21 @@ </SubMenu> ); } else { - return ( - <MenuItemLink - key={node.id} - to={node.component} // correspond to Resource.name - state={{ _scrollToTop: true }} - // primaryText={translate(`resources.orders.name`, { - // smart_count: 2, - // })} - primaryText={node.name} - leftIcon={getIcon(node.icon)} - dense={dense} - /> - ); + if (node.component) { + return ( + <MenuItemLink + key={node.id} + to={node.component} // correspond to Resource.name + state={{ _scrollToTop: true }} + // primaryText={translate(`resources.orders.name`, { + // smart_count: 2, + // })} + primaryText={node.name} + leftIcon={getIcon(node.icon)} + dense={dense} + /> + ); + } } }); }; -- Gitblit v1.9.1