Skip to content

Commit

Permalink
fix: 修复Connect_to跳转链接问题
Browse files Browse the repository at this point in the history
  • Loading branch information
orangemio committed Dec 14, 2020
1 parent 0c6119f commit b197b28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/elements/connect/connect.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export class ElementConnectComponent implements OnInit, OnDestroy {
case 'asset':
this._http.filterMyGrantedAssetsById(loginTo).subscribe(
nodes => {
if (nodes.length === 2) {
if (nodes.length === 1) {
this.hasLoginTo = true;
const node = nodes[1];
const node = nodes[0];
this.Connect(node);
}
}
Expand Down Expand Up @@ -90,9 +90,9 @@ export class ElementConnectComponent implements OnInit, OnDestroy {
case 'k8s_app':
this._http.getMyGrantedK8SApps(loginTo).subscribe(
nodes => {
if (nodes.length === 1) {
if (nodes.length === 2) {
this.hasLoginTo = true;
const node = nodes[0];
const node = nodes[1];
this.Connect(node);
}
}
Expand Down

0 comments on commit b197b28

Please sign in to comment.