fix: 修复授权树api数据结构

pull/6664/head
ibuler 2021-08-17 16:13:19 +08:00 committed by 老广
parent d46f1080f8
commit 5cd23b843a
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class SerializeToTreeNodeMixin:
'isParent': True,
'open': node.is_org_root(),
'meta': {
'node': {
'data': {
"id": node.id,
"key": node.key,
"value": node.value,
@ -65,7 +65,7 @@ class SerializeToTreeNodeMixin:
'chkDisabled': not asset.is_active,
'meta': {
'type': 'asset',
'asset': {
'data': {
'id': asset.id,
'hostname': asset.hostname,
'ip': asset.ip,