Commit 77c07fda authored by confusion's avatar confusion

添加翻译2

parent 44f94d80
......@@ -118,7 +118,7 @@ async def query_fund_id_permission(
permissions_tree = await find_all_sys_permission(fund_id=fund_id, all_permission_collect=all_permission_collect)
label = lang_to_label(lang)
return Response(data={'permission': permissions_tree['data'],
return Response(data={'permission': build_permission_tree(permissions_tree['data'], label),
'roles': {item['name']: {"label": item[label], "remark": item["remark"],
"permissions": build_permission_tree(item["permissions"], label)} for item
in roles_data}})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment