You've already forked RuoYi-fast
mirror of
https://github.com/yangzongzhuan/RuoYi-fast.git
synced 2025-12-17 14:03:58 +08:00
优化递归子节点
This commit is contained in:
@@ -50,13 +50,7 @@ public class TreeUtils
|
||||
{
|
||||
if (hasChild(list, tChild))
|
||||
{
|
||||
// 判断是否有子节点
|
||||
Iterator<Menu> it = childList.iterator();
|
||||
while (it.hasNext())
|
||||
{
|
||||
Menu n = (Menu) it.next();
|
||||
recursionFn(list, n);
|
||||
}
|
||||
recursionFn(list, tChild);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user