mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-18 16:32:28 +00:00
Fixed: Filter SFTP
This commit is contained in:
@@ -205,7 +205,6 @@ export default {
|
||||
formatter: AccountConnectFormatter,
|
||||
formatterArgs: {
|
||||
buttonIcon: 'fa fa-desktop',
|
||||
titleText: '可选协议',
|
||||
url: '/api/v1/assets/assets/{id}',
|
||||
can: () => this.currentUserIsSuperAdmin,
|
||||
connectUrlTemplate: (row) => `/luna/pam_connect/${row.id}/${row.username}/${row.asset.id}/${row.asset.name}/`,
|
||||
|
@@ -127,7 +127,8 @@ export default {
|
||||
const url = this.formatterArgs.url.replace('{id}', assetId)
|
||||
const res = await this.$axios.get(url)
|
||||
|
||||
if (res) this.protocols = res.protocols
|
||||
// 暂将 SFTP 过滤
|
||||
if (res) this.protocols = res.protocols.filter(protocol => protocol.name !== 'sftp')
|
||||
} catch (e) {
|
||||
throw new Error(`Error getting protocols: ${e}`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user