获取路由菜单选择项报错问题修复

This commit is contained in:
ktianc 2022-10-16 15:09:48 +08:00
parent ad279d7555
commit df767ed3cf

View File

@ -220,7 +220,7 @@ class MenuDal(DalBase):
"""
data = []
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":
sons = filter(lambda i: i.parent_id == root.id, menus)
router["children"] = self.generate_tree_options(menus, sons)