Commit e1a91142 authored by ibuler's avatar ibuler

[Update] 修改逻辑

parent 51d5f055
...@@ -19,7 +19,6 @@ export class ElementGuacamoleComponent implements OnInit { ...@@ -19,7 +19,6 @@ export class ElementGuacamoleComponent implements OnInit {
@Input() index: number; @Input() index: number;
@ViewChild('rdp') el: ElementRef; @ViewChild('rdp') el: ElementRef;
constructor(private sanitizer: DomSanitizer, constructor(private sanitizer: DomSanitizer,
private _http: HttpService, private _http: HttpService,
private _cookie: CookieService, private _cookie: CookieService,
...@@ -32,6 +31,7 @@ export class ElementGuacamoleComponent implements OnInit { ...@@ -32,6 +31,7 @@ export class ElementGuacamoleComponent implements OnInit {
data => { data => {
const base = data.result; const base = data.result;
this.target = document.location.origin + '/guacamole/#/client/' + base + '?token=' + DataStore.guacamole_token; this.target = document.location.origin + '/guacamole/#/client/' + base + '?token=' + DataStore.guacamole_token;
NavList.List[this.index].Rdp = this.el.nativeElement;
}, },
error => { error => {
this._logger.error(error); this._logger.error(error);
...@@ -42,6 +42,7 @@ export class ElementGuacamoleComponent implements OnInit { ...@@ -42,6 +42,7 @@ export class ElementGuacamoleComponent implements OnInit {
data => { data => {
const base = data.result; const base = data.result;
this.target = document.location.origin + '/guacamole/#/client/' + base + '?token=' + DataStore.guacamole_token; this.target = document.location.origin + '/guacamole/#/client/' + base + '?token=' + DataStore.guacamole_token;
NavList.List[this.index].Rdp = this.el.nativeElement;
}, },
error2 => { error2 => {
this._logger.error(error2); this._logger.error(error2);
...@@ -78,8 +79,6 @@ export class ElementGuacamoleComponent implements OnInit { ...@@ -78,8 +79,6 @@ export class ElementGuacamoleComponent implements OnInit {
} else { } else {
this.registerHost(); this.registerHost();
} }
NavList.List[this.index].Rdp = this.el.nativeElement;
} }
trust(url) { trust(url) {
......
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