Commit b5ff3177 authored by liuzheng712's avatar liuzheng712

feat: update

parent 0146e2b7
......@@ -21,13 +21,15 @@ export class TermpageComponent implements OnInit {
this.activatedRoute.params.subscribe((params: Params) => {
token = params['token'];
});
let socket = io.connect();
let socket = io.connect('/ssh');
let term = new Terminal({
cols: '80',
rows: '24',
useStyle: true,
screenKeys: true,
});
term.open(document.getElementById('term' ), true);
socket.on('connect', function () {
socket.emit('token', token);
......@@ -60,7 +62,7 @@ export class TermpageComponent implements OnInit {
term.resize(col, row);
}
};
jQuery(window).resize();
// jQuery(window).resize();
});
}
......
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