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

@@ -195,13 +195,16 @@ export const useEmbeddedChatbot = () => {
type: 'number',
}
}
if (item.checkbox) {
const preset = initInputs[item.checkbox.variable] === true
return {
...item.checkbox,
default: false,
default: preset || item.default || item.checkbox.default,
type: 'checkbox',
}
}
if (item.select) {
const isInputInOptions = item.select.options.includes(initInputs[item.select.variable])
return {