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}`) }