NEZ-2505 fix:发送文本到所有窗口bug

This commit is contained in:
zhangyu
2023-01-11 11:24:56 +08:00
parent b5c0fccdf6
commit ae07979e90
3 changed files with 8 additions and 8 deletions

View File

@@ -254,9 +254,9 @@ export default {
reconnect () {
this.terminal.isLogin = false
this.closeSocket()
setTimeout(()=>{
setTimeout(() => {
this.beforeCreate()
},100)
}, 100)
},
closeFileDir () {
this.showFileDir(false)
@@ -276,8 +276,8 @@ export default {
},
enterStr (message) {
if (this.terminalSocket && this.terminal.isLogin) {
this.terminalSocket.send(message)
this.terminalSocket.send('\n')
this.term.send(message)
this.term.send('\n')
this.term.scrollToBottom()
this.historyChange(message)
}