NEZ-2495 feat:terminal支持查看历史记录页面开发

This commit is contained in:
zyh
2023-01-05 17:32:53 +08:00
parent 1a68e4ef52
commit bbb04a0777
14 changed files with 221 additions and 47 deletions

View File

@@ -133,9 +133,11 @@ export default {
this.host = res.data.host
this.create()
} else {
this.terminal.uuid = res.data.uuid
this.terminal.userName = res.data.authUsername + '@' + res.data.host
this.host = res.data.host
if (res.data) {
this.terminal.uuid = res.data.uuid
this.terminal.userName = res.data.authUsername + '@' + res.data.host
this.host = res.data.host
}
params.name = this.terminal.name
this.$emit('loginFail', params)
this.$message.error(res.msg)
@@ -311,7 +313,12 @@ export default {
this.terminalSocket.send(message)
this.terminalSocket.send('\n')
this.term.scrollToBottom()
this.historyChange(message)
}
},
// 新增历史记录
historyChange (message) {
this.$emit('historyChange', message)
}
},
mounted () {
@@ -324,6 +331,3 @@ export default {
}
}
</script>
<style scoped lang="scss">
</style>