Commit 0eca941d authored by ibuler's avatar ibuler

[Bugfix] 修复刷新侧率

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