perf: 修改 tree 硬件设备的 icon

pull/12124/head
ibuler 1 year ago
parent 8667943443
commit 994b42aa93

@ -63,6 +63,8 @@ class SerializeToTreeNodeMixin:
return AllTypes.get_types_values(exclude_custom=True)
def get_icon(self, asset):
if asset.category == 'device':
return 'switch'
if asset.type in self.support_types:
return asset.type
else:

Loading…
Cancel
Save