diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogSftpTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogSftpTab.vue index 291817d18..70380857b 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogSftpTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/terminalLogSftpTab.vue @@ -69,6 +69,16 @@ export default { orderBy: { order: 'ascending', prop: 'id' } } }, + watch: { + obj: { + deep: true, + handler (n) { + if (n) { + this.getTableData() + } + } + } + }, methods: { async getTableData () { this.$set(this.searchLabel, 'uuid', this.obj.uuid) diff --git a/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue b/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue index dcc45abea..34f700a27 100644 --- a/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue +++ b/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue @@ -214,7 +214,20 @@ export default { width: 150, sortable: 'custom' } - ] + ], + timer: null + } + }, + methods: { + showBottomBox (targetTab, row) { + if (this.timer) { + clearTimeout(this.timer) + } + const self = this + this.timer = setTimeout(() => { + self.$emit('showBottomBox', targetTab, row) + self.timer = null + }, 200) } }, computed: { diff --git a/nezha-fronted/src/components/page/config/about.vue b/nezha-fronted/src/components/page/config/about.vue index e9e3dfeec..a2ab3a508 100644 --- a/nezha-fronted/src/components/page/config/about.vue +++ b/nezha-fronted/src/components/page/config/about.vue @@ -1,5 +1,5 @@