优化递归子节点

pull/202/head
RuoYi 2020-08-28 10:30:02 +08:00
parent 2f25abaaf2
commit b9c4796a27
1 changed files with 1 additions and 7 deletions

View File

@ -356,13 +356,7 @@ public class SysMenuServiceImpl implements ISysMenuService
{ {
if (hasChild(list, tChild)) if (hasChild(list, tChild))
{ {
// 判断是否有子节点 recursionFn(list, tChild);
Iterator<SysMenu> it = childList.iterator();
while (it.hasNext())
{
SysMenu n = (SysMenu) it.next();
recursionFn(list, n);
}
} }
} }
} }