Compare commits

...

1 Commits

Author SHA1 Message Date
ZhaoJiSen
1ed853e19a Revert "Fixed: Fix the issue of storage failure when updating components."
This reverts commit 2002519f30.
2025-09-15 14:41:01 +08:00

View File

@@ -50,25 +50,20 @@ export default {
}, },
methods: { methods: {
async initialSelect() { async initialSelect() {
try {
const commandOptions = await getAllCommandStorage() const commandOptions = await getAllCommandStorage()
const replayOptions = await getAllReplayStorage() commandOptions.forEach(item => {
if (commandOptions && commandOptions.results) {
commandOptions.results.forEach(item => {
this.fieldsMeta.command_storage.options.push({ label: item.name, value: item.name }) this.fieldsMeta.command_storage.options.push({ label: item.name, value: item.name })
}) })
} const replayOptions = await getAllReplayStorage()
if (replayOptions && replayOptions.results) { replayOptions.forEach(item => {
replayOptions.results.forEach(item => {
if (item.type.value === 'sftp') return if (item.type.value === 'sftp') return
this.fieldsMeta.replay_storage.options.push({ label: item.name, value: item.name }) this.fieldsMeta.replay_storage.options.push({ label: item.name, value: item.name })
}) })
} }
} catch (error) {
console.error(error)
}
}
} }
} }
</script> </script>
<style scoped>
</style>