From a63879ab72dbbe0003dbfecae60bab3aa0e5bff9 Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Tue, 15 Apr 2025 18:18:42 +0800 Subject: [PATCH] Fixed: Temporarily hide the SFTP protocol and restrict the winrm protocol --- .../Table/TableFormatters/AccountConnectFormatter.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Table/TableFormatters/AccountConnectFormatter.vue b/src/components/Table/TableFormatters/AccountConnectFormatter.vue index 411310780..14f2efff6 100644 --- a/src/components/Table/TableFormatters/AccountConnectFormatter.vue +++ b/src/components/Table/TableFormatters/AccountConnectFormatter.vue @@ -111,7 +111,9 @@ export default { try { const url = this.formatterArgs.assetUrl.replace('{id}', assetId) const res = await this.$axios.get(url) - this.protocols = res.protocols || [] + + // TODO 暂时将 sftp 隐藏 + this.protocols = res.protocols.filter(protocol => (protocol.name !== 'sftp') && (protocol.name !== 'winrm')) || [] } catch (e) { throw new Error(`Error getting protocols: ${e}`) }