mirror of
https://github.com/jumpserver/lina.git
synced 2025-11-21 18:55:19 +00:00
Compare commits
1 Commits
v4.10.13-l
...
revert-519
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1ed853e19a |
@@ -50,25 +50,20 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async initialSelect() {
|
async initialSelect() {
|
||||||
try {
|
const commandOptions = await getAllCommandStorage()
|
||||||
const commandOptions = await getAllCommandStorage()
|
commandOptions.forEach(item => {
|
||||||
const replayOptions = await getAllReplayStorage()
|
this.fieldsMeta.command_storage.options.push({ label: item.name, value: item.name })
|
||||||
|
})
|
||||||
if (commandOptions && commandOptions.results) {
|
const replayOptions = await getAllReplayStorage()
|
||||||
commandOptions.results.forEach(item => {
|
replayOptions.forEach(item => {
|
||||||
this.fieldsMeta.command_storage.options.push({ label: item.name, value: item.name })
|
if (item.type.value === 'sftp') return
|
||||||
})
|
this.fieldsMeta.replay_storage.options.push({ label: item.name, value: item.name })
|
||||||
}
|
})
|
||||||
if (replayOptions && replayOptions.results) {
|
|
||||||
replayOptions.results.forEach(item => {
|
|
||||||
if (item.type.value === 'sftp') return
|
|
||||||
this.fieldsMeta.replay_storage.options.push({ label: item.name, value: item.name })
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error(error)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user