Commit 2d6bd826 authored by ibuler's avatar ibuler

[Update] 更新luna的一些说明

parent ea185ffb
......@@ -148,6 +148,8 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
} else if (host.system_users_granted.length === 1) {
user = host.system_users_granted[0];
this.login(host, user);
} else {
alert('该主机没有授权登录用户');
}
}
......
......@@ -65,7 +65,7 @@ export class ElementSshTermComponent implements OnInit, AfterViewInit {
});
ws.on('disconnect', () => {
that.disconnect();
that.close();
});
ws.on('logout', (data) => {
......@@ -81,7 +81,7 @@ export class ElementSshTermComponent implements OnInit, AfterViewInit {
});
}
disconnect() {
close() {
const view = NavList.List[this.index];
if (view) {
NavList.List[this.index].connected = false;
......
......@@ -26,14 +26,12 @@ export class PagesConnectComponent implements OnInit {
this.system = this._appService.getQueryString('system');
this.token = this._appService.getQueryString('token');
jQuery('body').css('background-color', 'black');
this.userid = this._localStorage.get('user-' + this.token);
this.authToken = this._localStorage.get('authToken-' + this.token);
this.base = this._localStorage.get('base-' + this.token);
jQuery('body').css('background-color', '#1f1b1b');
if (this.system === 'windows') {
if (!this.userid) {
this._http.get_user_id_from_token(this.token)
.subscribe(
......
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