diff --git a/web/src/components/AgentConfigSidebar.vue b/web/src/components/AgentConfigSidebar.vue index 2ae7fbe6..bb1b0c4e 100644 --- a/web/src/components/AgentConfigSidebar.vue +++ b/web/src/components/AgentConfigSidebar.vue @@ -691,7 +691,7 @@ const validateAndFilterConfig = () => { } // 检查多选配置项 (type === 'list' 且有 options) - else if (configItem.type === 'list' && configItem.options && Array.isArray(currentValue)) { + else if (configItem.type === 'list' && configItem.options.length > 0 && Array.isArray(currentValue)) { const validOptions = configItem.options validatedConfig[key] = currentValue.filter((value) => validOptions.includes(value))