From 38803518fcbbe3c3e0f4063f9f9e52615508f4c0 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Mon, 7 Aug 2023 12:11:35 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=B1=BB=E5=9E=8B=E6=A0=91=E5=8F=B3?= =?UTF-8?q?=E5=87=BB=E5=8F=AF=E4=BB=A5=E8=8E=B7=E5=8F=96=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E4=B8=8B=E6=89=80=E6=9C=89=E7=9A=84=E8=B5=84=E4=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/perms/api/user_permission/tree/node_with_asset.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/perms/api/user_permission/tree/node_with_asset.py b/apps/perms/api/user_permission/tree/node_with_asset.py index 5469c6ed3..72080247a 100644 --- a/apps/perms/api/user_permission/tree/node_with_asset.py +++ b/apps/perms/api/user_permission/tree/node_with_asset.py @@ -188,6 +188,8 @@ class UserPermedNodeChildrenWithAssetsAsCategoryTreeApi( _type = meta.get('_type') if _type: node['type'] = _type + meta.setdefault('data', {}) + node['meta'] = meta nodes.append(node) if not self.is_sync: