fix:terinmal send all 信息 回车 分开发送

This commit is contained in:
zhangyu
2023-02-20 15:53:58 +08:00
parent 3e5b929d2c
commit ca836e06f1

View File

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