修复打开方式为"新标签页" 菜单有下级 无法加载路由问题

This commit is contained in:
zegezy 2024-03-11 20:53:21 +08:00
parent 81a27a1f68
commit e2f6def685

View File

@ -5,7 +5,7 @@
"groupId" : "67b2ce258e24491194b74992958c74aa", "groupId" : "67b2ce258e24491194b74992958c74aa",
"name" : "当前用户菜单", "name" : "当前用户菜单",
"createTime" : null, "createTime" : null,
"updateTime" : 1709717134895, "updateTime" : 1710120493352,
"lock" : "0", "lock" : "0",
"createBy" : null, "createBy" : null,
"updateBy" : null, "updateBy" : null,
@ -564,7 +564,7 @@ var notLayoutMenus = db.select("""
sm.url as path, sm.url as path,
-- 查询下级是否还有菜单(不包含按钮权限) -- 查询下级是否还有菜单(不包含按钮权限)
( (
select count(1) from sys_menu where is_del = 0 and pid = sm.id and select count(1) from sys_menu where is_del = 0 and is_show = 1 and pid = sm.id and
((component_id is not null and component_id != '') or (url is not null and url != '')) ((component_id is not null and component_id != '') or (url is not null and url != ''))
) sub_count, ) sub_count,
sm.keep_alive sm.keep_alive