chore: improve bool input of start node (#26647)

This commit is contained in:
非法操作
2025-10-08 19:09:03 +08:00
committed by GitHub
parent dbd23f91e5
commit 9cca605bac
6 changed files with 59 additions and 7 deletions

View File

@@ -61,6 +61,17 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
default: content.default,
})
}
else if (type === 'boolean') {
promptVariables.push({
key: content.variable,
name: content.label,
required: content.required,
type: 'checkbox',
options: [],
hide: content.hide,
default: content.default,
})
}
else if (type === 'select') {
promptVariables.push({
key: content.variable,