fix: 修复菜单生成路由时组件条件判断错误的问题
This commit is contained in:
@@ -475,9 +475,9 @@ class RouterUtil:
|
|||||||
component = 'Layout'
|
component = 'Layout'
|
||||||
if menu.component and not cls.is_menu_frame(menu):
|
if menu.component and not cls.is_menu_frame(menu):
|
||||||
component = menu.component
|
component = menu.component
|
||||||
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):
|
||||||
component = 'InnerLink'
|
component = 'InnerLink'
|
||||||
elif menu.component and cls.is_parent_view(menu):
|
elif (menu.component is None or menu.component == '') and cls.is_parent_view(menu):
|
||||||
component = 'ParentView'
|
component = 'ParentView'
|
||||||
return component
|
return component
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user