fix: update

parent 8e15d8b0
...@@ -38,6 +38,9 @@ export class ElementGuacamoleComponent implements OnInit { ...@@ -38,6 +38,9 @@ export class ElementGuacamoleComponent implements OnInit {
this._http.guacamole_token_add_asset(this.token, data['authToken']).subscribe( this._http.guacamole_token_add_asset(this.token, data['authToken']).subscribe(
data2 => { data2 => {
this._logger.debug(data); this._logger.debug(data);
if (data2['result']) {
window.location.reload();
}
this.target = document.location.origin + '/guacamole/#/client/' + data2['result'] + this.target = document.location.origin + '/guacamole/#/client/' + data2['result'] +
'?asset_token=jumpserver&token=' + data['authToken']; '?asset_token=jumpserver&token=' + data['authToken'];
}, },
......
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