fix:修正设置字体大小时 没有调用接口

This commit is contained in:
zhangyu
2020-07-01 14:17:10 +08:00
parent adb4720bce
commit a2f5035cbc

View File

@@ -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)
} }