From ca836e06f1ea525e9984e7d542bb1ea5355c0fa0 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 20 Feb 2023 15:53:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Aterinmal=20send=20all=20=20?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20=E5=9B=9E=E8=BD=A6=20=E5=88=86=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/cli/consoleNew.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/cli/consoleNew.vue b/nezha-fronted/src/components/cli/consoleNew.vue index e33b66b2b..7fe645cd8 100644 --- a/nezha-fronted/src/components/cli/consoleNew.vue +++ b/nezha-fronted/src/components/cli/consoleNew.vue @@ -277,7 +277,9 @@ export default { enterStr (message) { if (this.terminalSocket && this.terminal.isLogin) { this.term.send(message) - this.term.send('\n') + setTimeout(() => { + this.term.send('\n') + }, 100) this.term.scrollToBottom() this.historyChange(message) }