We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 581ef15 commit 2360c7aCopy full SHA for 2360c7a
ruoyi-fastapi-backend/module_admin/service/login_service.py
@@ -475,9 +475,9 @@ def get_component(cls, menu: MenuTreeModel):
475
component = 'Layout'
476
if menu.component and not cls.is_menu_frame(menu):
477
component = menu.component
478
- elif menu.component and menu.parent_id != 0 and cls.is_inner_link(menu):
+ elif (menu.component is None or menu.component == '') and menu.parent_id != 0 and cls.is_inner_link(menu):
479
component = 'InnerLink'
480
- elif menu.component and cls.is_parent_view(menu):
+ elif (menu.component is None or menu.component == '') and cls.is_parent_view(menu):
481
component = 'ParentView'
482
return component
483
0 commit comments