fix:修复进入全屏和退出全屏时部分ternimal内容在底部
This commit is contained in:
@@ -134,6 +134,9 @@ export default {
|
|||||||
this.$message.error(response.msg);
|
this.$message.error(response.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
this.$nextTick(()=>{// 解决进入全屏和退出全屏是底部隐藏
|
||||||
|
this.setFontSize(this.fontSize);
|
||||||
|
})
|
||||||
|
|
||||||
/*
|
/*
|
||||||
window.addEventListener('resize',this.windowChange)
|
window.addEventListener('resize',this.windowChange)
|
||||||
@@ -305,6 +308,7 @@ export default {
|
|||||||
},
|
},
|
||||||
setFontSize(fontSize){
|
setFontSize(fontSize){
|
||||||
this.term.setOption('fontSize',fontSize);
|
this.term.setOption('fontSize',fontSize);
|
||||||
|
this.fontSize=fontSize;
|
||||||
const consoleBox = document.getElementById('ternimalContainer'+this.idIndex);
|
const consoleBox = document.getElementById('ternimalContainer'+this.idIndex);
|
||||||
let width = document.body.clientWidth;//可视宽度
|
let width = document.body.clientWidth;//可视宽度
|
||||||
let height = parseInt(consoleBox.style.height);
|
let height = parseInt(consoleBox.style.height);
|
||||||
|
|||||||
Reference in New Issue
Block a user