Commit 34c5cb72 authored by liuzheng712's avatar liuzheng712

feat: update

parent bcf72059
......@@ -132,6 +132,11 @@ export class CleftbarComponent implements OnInit {
jQuery('app-ssh').hide();
jQuery('app-rdp').show();
this._rdp.Connect(host, username);
} else {
jQuery('app-ssh').show();
jQuery('app-rdp').hide();
this._term.TerminalConnect(host, username);
}
}
......
......@@ -99,7 +99,7 @@ export class SshComponent implements OnInit {
NavList.List[id].Term.term.write('\x1b[31mWelcome to Jumpserver!\x1b[m\r\n');
socket.on('connect', function () {
socket.emit('host', {'uuid': host.id, 'user': username});
socket.emit('host', {'asset': host, 'username': username});
NavList.List[id].Term.term.on('data', function (data) {
socket.emit('data', 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