mirror of https://github.com/jumpserver/jumpserver
perf: 类型树右击可以获取节点下所有的资产
parent
49662b308d
commit
38803518fc
|
@ -188,6 +188,8 @@ class UserPermedNodeChildrenWithAssetsAsCategoryTreeApi(
|
||||||
_type = meta.get('_type')
|
_type = meta.get('_type')
|
||||||
if _type:
|
if _type:
|
||||||
node['type'] = _type
|
node['type'] = _type
|
||||||
|
meta.setdefault('data', {})
|
||||||
|
node['meta'] = meta
|
||||||
nodes.append(node)
|
nodes.append(node)
|
||||||
|
|
||||||
if not self.is_sync:
|
if not self.is_sync:
|
||||||
|
|
Loading…
Reference in New Issue