获取路由菜单选择项报错问题修复
This commit is contained in:
parent
ad279d7555
commit
df767ed3cf
@ -220,7 +220,7 @@ class MenuDal(DalBase):
|
|||||||
"""
|
"""
|
||||||
data = []
|
data = []
|
||||||
for root in nodes:
|
for root in nodes:
|
||||||
router = {"value": root.id, "label": root.title}
|
router = {"value": root.id, "label": root.title, "order": root.order}
|
||||||
if root.menu_type == "0" or root.menu_type == "1":
|
if root.menu_type == "0" or root.menu_type == "1":
|
||||||
sons = filter(lambda i: i.parent_id == root.id, menus)
|
sons = filter(lambda i: i.parent_id == root.id, menus)
|
||||||
router["children"] = self.generate_tree_options(menus, sons)
|
router["children"] = self.generate_tree_options(menus, sons)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user