Skip to content

Commit 2360c7a

Browse files
committed
fix: 修复菜单生成路由时组件条件判断错误的问题
1 parent 581ef15 commit 2360c7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruoyi-fastapi-backend/module_admin/service/login_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,9 @@ def get_component(cls, menu: MenuTreeModel):
475475
component = 'Layout'
476476
if menu.component and not cls.is_menu_frame(menu):
477477
component = menu.component
478-
elif menu.component and menu.parent_id != 0 and cls.is_inner_link(menu):
478+
elif (menu.component is None or menu.component == '') and menu.parent_id != 0 and cls.is_inner_link(menu):
479479
component = 'InnerLink'
480-
elif menu.component and cls.is_parent_view(menu):
480+
elif (menu.component is None or menu.component == '') and cls.is_parent_view(menu):
481481
component = 'ParentView'
482482
return component
483483

0 commit comments

Comments
 (0)