优化减少组件间数组传递

This commit is contained in:
fofolee
2025-02-15 23:04:55 +08:00
parent 49631ac60d
commit ddd1fc11d7
12 changed files with 167 additions and 196 deletions

View File

@@ -74,7 +74,7 @@
>
<CommandConfig
class="command-config-panel"
v-if="flow.id === 'main' && commandConfig.features"
v-if="flow.id === 'main' && showCommandConfig"
:model-value="commandConfig"
@update:model-value="updateCommandConfig"
/>
@@ -267,6 +267,14 @@ export default defineComponent({
outputVariables: [],
};
},
computed: {
isRunComposerPage() {
return this.$route.name === "composer";
},
showCommandConfig() {
return !this.isRunComposerPage && this.commandConfig.features;
},
},
methods: {
generateFlowName(baseName = "func_") {
return (