Commit bdd35cec authored by ibuler's avatar ibuler

[Bugfix] 修改luna右击的bug

parent 6414c78a
......@@ -169,9 +169,9 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
if (host.protocol) {
protocols.push(host.protocol);
}
for (let i = 0; i <= protocols.length; i++) {
for (let i = 0; i < protocols.length; i++) {
const protocol = protocols[i];
if (protocol.startsWith('ssh')) {
if (protocol && protocol.startsWith('ssh')) {
findSSHProtocol = true;
}
}
......
<!--<iframe #rdp [src]="trust('https://inews.gtimg.com/newsapp_bt/0/3460971429/1000')" width="100%" height="100%" (mouseenter)="active()"></iframe>-->
<iframe #rdp [src]="trust(target)" width="100%" height="100%" (mouseenter)="active()"></iframe>
<iframe *ngIf="target" #rdp [src]="trust(target)" width="100%" height="100%" (mouseenter)="active()"></iframe>
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