1、解决命令行不能自动滚动的bug
This commit is contained in:
parent
59671f18b6
commit
d285ae4d19
@ -103,8 +103,8 @@
|
||||
//console.log(result);
|
||||
if(result.code == 0){
|
||||
var obj = document.getElementById("rx_win");
|
||||
obj.scrollTop = obj.scrollHeight;
|
||||
rxWin.val(rxWin.val() +result.data+ "\r\n");
|
||||
obj.scroll({top:obj.scrollHeight,left:0,behavior:'smooth'})
|
||||
}
|
||||
else{
|
||||
layer.alert(result.data, {
|
||||
@ -183,9 +183,8 @@
|
||||
function setResult(result) {
|
||||
var $ = layui.$;
|
||||
var obj = document.getElementById("rx_win");
|
||||
obj.scrollTop = obj.scrollHeight;
|
||||
$("#rx_win").val($("#rx_win").val() + result.data + "\r\n");
|
||||
form.render();
|
||||
obj.scroll({top:obj.scrollHeight,left:0,behavior:'smooth'})
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user