修复控制流程变量异常BUG

This commit is contained in:
fofolee
2025-01-20 22:09:50 +08:00
parent 79d841e0b4
commit db281ce38c
2 changed files with 19 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ export default defineComponent({
values() {
if (!this.currentFunction?.config) return [];
return this.currentFunction.config.map(
(input) => this.argvs[input.key] || ""
(input) => this.argvs[input.name] || ""
);
},
showBranchButton() {
@@ -94,7 +94,7 @@ export default defineComponent({
methods: {
handleInputUpdate(index, value) {
const input = this.currentFunction.config[index];
this.updateArgvs(input.key, value);
this.updateArgvs(input.name, value);
},
updateArgvs(key, value) {
const argvs = {
@@ -175,7 +175,7 @@ export default defineComponent({
// 初始化默认值
if (this.currentFunction?.config) {
this.currentFunction.config.forEach((config) => {
this.defaultArgvs[config.key] = config.defaultValue || "";
this.defaultArgvs[config.name] = config.defaultValue || "";
});
}
},