fix: 对象存储下拉无法自动加载

This commit is contained in:
wangruidong
2023-11-15 14:19:15 +08:00
parent 5a478ebaba
commit c7414e0199

View File

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