|
|
@@ -167,6 +167,10 @@ public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements Me
|
|
|
}
|
|
|
// 使用父级 title 覆盖子级(更概括)
|
|
|
childMeta.put("title", menu.getTitle());
|
|
|
+ // 继承父级 rank(子级优先)
|
|
|
+ if (childMeta.get("rank") == null && menu.getRank() != null) {
|
|
|
+ childMeta.put("rank", menu.getRank());
|
|
|
+ }
|
|
|
tree.add(childNode);
|
|
|
} else {
|
|
|
node.put("children", childNodes);
|