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 { ...@@ -155,8 +155,8 @@ public class SysLoginServiceImpl implements SysLoginService {
List<RouterVO> children = buildRouterTree(menu.getMenuId(), allMenus); List<RouterVO> children = buildRouterTree(menu.getMenuId(), allMenus);
router.setChildren(children.isEmpty() ? null : children); router.setChildren(children.isEmpty() ? null : children);
// 有子路由时设置 alwaysShow // 有子路由时设置 alwaysShow
if (children.isEmpty()) { if (!children.isEmpty()) {
router.setAlwaysShow(null); router.setAlwaysShow(Boolean.TRUE);
} }
return router; 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