mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
fix: 对象存储下拉无法自动加载
This commit is contained in:
@@ -53,16 +53,7 @@ export default {
|
||||
component: Select2,
|
||||
el: {
|
||||
ajax: {
|
||||
url: `/api/v1/terminal/replay-storages/`,
|
||||
processResults(data) {
|
||||
const options = []
|
||||
data?.results.forEach(item => {
|
||||
if (item.type.value === 'sftp') return
|
||||
options.push({ label: item.name, value: item.id })
|
||||
})
|
||||
data.results = options
|
||||
return { results: options, pagination: data.next, total: data.count }
|
||||
}
|
||||
url: `/api/v1/terminal/replay-storages/?type_not=sftp`
|
||||
},
|
||||
multiple: false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user