From 5cd23b843aeec3f71112f177acac3128eab89eed Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 17 Aug 2021 16:13:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E6=A0=91api=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/api/mixin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/assets/api/mixin.py b/apps/assets/api/mixin.py index f7738f3f1..7f485bf29 100644 --- a/apps/assets/api/mixin.py +++ b/apps/assets/api/mixin.py @@ -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,