Commit 2a5e5882 authored by ibuler's avatar ibuler

[Update] 修改连接

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