fix:修复进入全屏和退出全屏时部分ternimal内容在底部

This commit is contained in:
zhangyu
2020-06-29 14:03:02 +08:00
parent 1bd5d039c1
commit 587034abdb

View File

@@ -134,6 +134,9 @@ export default {
this.$message.error(response.msg);
}
});
this.$nextTick(()=>{// 解决进入全屏和退出全屏是底部隐藏
this.setFontSize(this.fontSize);
})
/*
window.addEventListener('resize',this.windowChange)
@@ -305,6 +308,7 @@ export default {
},
setFontSize(fontSize){
this.term.setOption('fontSize',fontSize);
this.fontSize=fontSize;
const consoleBox = document.getElementById('ternimalContainer'+this.idIndex);
let width = document.body.clientWidth;//可视宽度
let height = parseInt(consoleBox.style.height);