fix: webapp get boolean value

This commit is contained in:
Joel 2025-07-25 14:05:14 +08:00
parent efa28453be
commit e3e4369358
1 changed files with 8 additions and 0 deletions

View File

@ -207,6 +207,14 @@ export const useChatWithHistory = (installedAppInfo?: InstalledApp) => {
type: 'number',
}
}
if(item.boolean) {
return {
...item.boolean,
default: false,
type: 'boolean',
}
}
if (item.select) {
const isInputInOptions = item.select.options.includes(initInputs[item.select.variable])
return {