fix:修正设置字体大小时 没有调用接口
This commit is contained in:
@@ -328,16 +328,16 @@ export default {
|
|||||||
document.getElementsByClassName('xterm-screen')[this.idIndex].style.height=height+'px'
|
document.getElementsByClassName('xterm-screen')[this.idIndex].style.height=height+'px'
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(()=>{
|
||||||
this.term.resize(this.term.cols,this.term.rows);
|
this.term.resize(this.term.cols,this.term.rows);
|
||||||
})
|
});
|
||||||
// alert(JSON.stringify(winStyle));
|
// alert(JSON.stringify(winStyle));
|
||||||
// this.$post('terminal/resize',winStyle).then(response => {
|
this.$post('terminal/resize',winStyle).then(response => {
|
||||||
// if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
// this.term.fit();
|
this.term.fit();
|
||||||
// //this.term.scrollToBottom();
|
//this.term.scrollToBottom();
|
||||||
// } else {
|
} else {
|
||||||
// this.$message.error(response.msg);
|
this.$message.error(response.msg);
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
|
|
||||||
// console.log(winStyle)
|
// console.log(winStyle)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user