From a2f5035cbc6fc28c408c17c6e0dc3b088fbb6dda Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 1 Jul 2020 14:17:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=AD=A3=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=AD=97=E4=BD=93=E5=A4=A7=E5=B0=8F=E6=97=B6=20?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=B0=83=E7=94=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/cli/console.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nezha-fronted/src/components/cli/console.vue b/nezha-fronted/src/components/cli/console.vue index ddf9d4bc4..f41ffdb46 100644 --- a/nezha-fronted/src/components/cli/console.vue +++ b/nezha-fronted/src/components/cli/console.vue @@ -328,16 +328,16 @@ export default { document.getElementsByClassName('xterm-screen')[this.idIndex].style.height=height+'px' this.$nextTick(()=>{ this.term.resize(this.term.cols,this.term.rows); - }) + }); // alert(JSON.stringify(winStyle)); - // this.$post('terminal/resize',winStyle).then(response => { - // if (response.code === 200) { - // this.term.fit(); - // //this.term.scrollToBottom(); - // } else { - // this.$message.error(response.msg); - // } - // }); + this.$post('terminal/resize',winStyle).then(response => { + if (response.code === 200) { + this.term.fit(); + //this.term.scrollToBottom(); + } else { + this.$message.error(response.msg); + } + }); // console.log(winStyle) }