Commit b99ef6d1 authored by ibuler's avatar ibuler

[Update] Expand tree

parent cd12feb0
...@@ -125,7 +125,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges { ...@@ -125,7 +125,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
$.fn.zTree.init($('#ztree'), this.setting, this.nodes); $.fn.zTree.init($('#ztree'), this.setting, this.nodes);
const zTree = $.fn.zTree.getZTreeObj('ztree'); const zTree = $.fn.zTree.getZTreeObj('ztree');
const root = zTree.getNodes()[0]; const root = zTree.getNodes()[0];
zTree.expandNode(root); zTree.expandNode(root, true);
} }
Connect(host) { Connect(host) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment