From 13b2a7030c374a9f0a43cf9494c5edf0379135e8 Mon Sep 17 00:00:00 2001 From: lijiahang Date: Mon, 5 Feb 2024 19:21:48 +0800 Subject: [PATCH] :construction: sftp. --- .../host/terminal/components/layout/right-sidebar.vue | 10 ++-------- .../views/host/terminal/components/sftp/sftp-view.vue | 2 ++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/orion-ops-ui/src/views/host/terminal/components/layout/right-sidebar.vue b/orion-ops-ui/src/views/host/terminal/components/layout/right-sidebar.vue index 446c70e4..d8084384 100644 --- a/orion-ops-ui/src/views/host/terminal/components/layout/right-sidebar.vue +++ b/orion-ops-ui/src/views/host/terminal/components/layout/right-sidebar.vue @@ -26,7 +26,7 @@ import IconActions from './icon-actions.vue'; import CommandSnippetListDrawer from '../../../command-snippet/components/command-snippet-list-drawer.vue'; - const emits = defineEmits(['openSftp', 'openTransfer']); + const emits = defineEmits(['openTransfer']); const { getAndCheckCurrentTerminalSession } = useTerminalStore(); @@ -38,13 +38,7 @@ icon: 'icon-code', content: '打开命令片段', click: () => snippetRef.value.open() - }, - { - icon: 'icon-folder', - content: '打开 SFTP', - click: () => emits('openSftp') - }, - { + }, { icon: 'icon-swap', content: '文件传输列表', iconStyle: { diff --git a/orion-ops-ui/src/views/host/terminal/components/sftp/sftp-view.vue b/orion-ops-ui/src/views/host/terminal/components/sftp/sftp-view.vue index df52b805..e013f311 100644 --- a/orion-ops-ui/src/views/host/terminal/components/sftp/sftp-view.vue +++ b/orion-ops-ui/src/views/host/terminal/components/sftp/sftp-view.vue @@ -1,6 +1,8 @@