Commit 02d10269 by Lizh

fix: SysLoginServiceImpl.alwaysShow 逻辑修正 — 有子路由时设为 true

Co-Authored-By: Claude <noreply@anthropic.com>
parent 23988827
......@@ -155,8 +155,8 @@ public class SysLoginServiceImpl implements SysLoginService {
List<RouterVO> children = buildRouterTree(menu.getMenuId(), allMenus);
router.setChildren(children.isEmpty() ? null : children);
// 有子路由时设置 alwaysShow
if (children.isEmpty()) {
router.setAlwaysShow(null);
if (!children.isEmpty()) {
router.setAlwaysShow(Boolean.TRUE);
}
return router;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment