Fixed: Temporarily hide the SFTP protocol and restrict the winrm protocol

This commit is contained in:
zhaojisen 2025-04-15 18:18:42 +08:00 committed by ZhaoJiSen
parent 7cfb1c6ee7
commit 9b127470e2

View File

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