feat: update

parent b415e400
...@@ -8320,11 +8320,6 @@ ...@@ -8320,11 +8320,6 @@
} }
} }
}, },
"ngx-logger": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/ngx-logger/-/ngx-logger-1.1.2.tgz",
"integrity": "sha1-//QiCP9KTHqmIf7z9nOgCHW9Yts="
},
"ngx-perfect-scrollbar": { "ngx-perfect-scrollbar": {
"version": "5.2.0", "version": "5.2.0",
"resolved": "https://registry.npmjs.org/ngx-perfect-scrollbar/-/ngx-perfect-scrollbar-5.2.0.tgz", "resolved": "https://registry.npmjs.org/ngx-perfect-scrollbar/-/ngx-perfect-scrollbar-5.2.0.tgz",
......
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
"ng2-cookies": "^1.0.12", "ng2-cookies": "^1.0.12",
"ngx-bootstrap": "^1.6.6", "ngx-bootstrap": "^1.6.6",
"ngx-layer": "0.0.4", "ngx-layer": "0.0.4",
"ngx-logger": "^1.1.2",
"ngx-perfect-scrollbar": "5.2.0", "ngx-perfect-scrollbar": "5.2.0",
"ngx-progressbar": "^2.1.1", "ngx-progressbar": "^2.1.1",
"node": "^9.3.0", "node": "^9.3.0",
......
...@@ -25,7 +25,7 @@ export class ElementIframeComponent implements OnInit { ...@@ -25,7 +25,7 @@ export class ElementIframeComponent implements OnInit {
ngOnInit() { ngOnInit() {
// /guacamole/api/tokens will redirect to http://guacamole/api/tokens // /guacamole/api/tokens will redirect to http://guacamole/api/tokens
let options = new RequestOptions(); let options = new RequestOptions();
options.headers.append('Content-Type', 'application/x-www-form-urlencoded'); options.headers.set('Content-Type', 'application/x-www-form-urlencoded');
this._http.get('/guacamole/api/tokens?username=' + User.name + '&password=zheng&asset_id=' + this._http.get('/guacamole/api/tokens?username=' + User.name + '&password=zheng&asset_id=' +
this.host.id + '&system_user_id=' + this.userid, options this.host.id + '&system_user_id=' + this.userid, options
).map(res => res.json()) ).map(res => res.json())
......
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