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