fix: update

parent 25d25f02
......@@ -6992,6 +6992,9 @@
"stream-splicer": "2.0.0"
}
},
"layui-layer": {
"version": "git+https://github.com/jumpserver/layer.git#c568876741b64556df9916ed678a6106e1e82899"
},
"lazy-cache": {
"version": "0.2.7",
"resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-0.2.7.tgz",
......
......@@ -4,6 +4,7 @@ import {NavList} from '../../ControlPage/control/control.component';
import {User} from '../../globals';
import {HttpService, LogService} from '../../app.service';
import * as Base64 from 'base64-js/base64js.min';
import {Http, RequestOptions} from '@angular/http';
@Component({
selector: 'app-element-iframe',
......@@ -17,15 +18,16 @@ export class ElementIframeComponent implements OnInit {
target: string;
constructor(private sanitizer: DomSanitizer,
private _http: HttpService,
private _http: Http,
private _logger: LogService) {
}
ngOnInit() {
// /guacamole/api/tokens will redirect to http://guacamole/api/tokens
this._http.headers.append('Content-Type', 'application/x-www-form-urlencoded');
let options = new RequestOptions();
options.headers.append('Content-Type', 'application/x-www-form-urlencoded');
this._http.get('/guacamole/api/tokens?username=' + User.name + '&password=zheng&asset_id=' +
this.host.id + '&system_user_id=' + this.userid
this.host.id + '&system_user_id=' + this.userid, options
).map(res => res.json())
.subscribe(
data => {
......
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