Commit 2a5e5882 authored by ibuler's avatar ibuler

[Update] 修改连接

parent a62a9c76
...@@ -59,16 +59,18 @@ export class ElementConnectComponent implements OnInit, OnDestroy { ...@@ -59,16 +59,18 @@ export class ElementConnectComponent implements OnInit, OnDestroy {
break; break;
case 'remote_app': case 'remote_app':
this._http.getMyGrantedRemoteApps(loginTo).subscribe( this._http.getMyGrantedRemoteApps(loginTo).subscribe(
nodes => { nodes => {
if (nodes.length === 1) { if (nodes.length === 1) {
this.hasLoginTo = true; this.hasLoginTo = true;
const node = nodes[0]; const node = nodes[0];
this.Connect(node); this.Connect(node);
}
} }
} );
); break;
} }
} }
ngOnDestroy(): void { ngOnDestroy(): void {
connectEvt.unsubscribe(); connectEvt.unsubscribe();
} }
......
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