pref(sidebar): 优化子菜单构造是的parentKey的取值

master
钟良源 4 months ago
parent ec2400aa60
commit a9aa38a1d0

@ -55,7 +55,7 @@ const SideBar: React.FC<SideBarProps> = ({ selected, identity, subMenuData, onMe
v.title = v.name; v.title = v.name;
v.key = `compFlow-${v.id}`; v.key = `compFlow-${v.id}`;
v.path = 'compFlow'; v.path = 'compFlow';
v.parentKey = menu[activeKey]?.key; v.parentKey = subMenuKey;
v.children = [ v.children = [
{ {
title: '事件', title: '事件',

Loading…
Cancel
Save