Commit 0eca941d authored by ibuler's avatar ibuler

[Bugfix] 修复刷新侧率

parent 9f524f1e
......@@ -64,6 +64,14 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
getGrantedAssetsNodes() {
this._http.get_my_granted_nodes()
.subscribe(response => {
this.Data = [...response, ...this.Data];
this.draw();
});
}
refreshGrantedAssetsNodes() {
this._http.refresh_my_granted_nodes()
.subscribe(response => {
this.Data = [...response, ...this.Data];
this.draw();
......@@ -104,7 +112,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
refreshNodes() {
this.zTree.destroy();
this.Data = [];
this.getGrantedAssetsNodes();
this.refreshGrantedAssetsNodes();
this.getGrantedRemoteApps();
}
......
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