mirror of https://github.com/jumpserver/jumpserver
fix: when moniter the terminal, fix the shake
parent
abdf9c72ca
commit
34b74b9e4e
|
@ -149,6 +149,7 @@
|
||||||
|
|
||||||
var tag = $('<div id="term" style="height:500px; overflow: auto;background-color: rgba(0, 0, 0, 0);border: none"></div>');
|
var tag = $('<div id="term" style="height:500px; overflow: auto;background-color: rgba(0, 0, 0, 0);border: none"></div>');
|
||||||
term.open();
|
term.open();
|
||||||
|
$('.terminal').hide();
|
||||||
term.resize(80, 24);
|
term.resize(80, 24);
|
||||||
|
|
||||||
socket.onopen = function(evt){
|
socket.onopen = function(evt){
|
||||||
|
@ -167,6 +168,7 @@
|
||||||
//服务器端认证
|
//服务器端认证
|
||||||
window.setTimeout(function(){
|
window.setTimeout(function(){
|
||||||
$('.terminal').detach().appendTo('#term');
|
$('.terminal').detach().appendTo('#term');
|
||||||
|
$('.terminal').show();
|
||||||
socket.onmessage = function(evt){
|
socket.onmessage = function(evt){
|
||||||
term.write(evt.data);
|
term.write(evt.data);
|
||||||
}}, 1000);
|
}}, 1000);
|
||||||
|
|
Loading…
Reference in New Issue