From b6e0d524a1d2b60a6c8163ab61691c013b692867 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Fri, 23 Jan 2026 23:03:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=B1=E4=BA=8E?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E9=80=BB=E8=BE=91=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=A4=9A=E9=80=89=E9=85=8D=E7=BD=AE=E9=A1=B9=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E7=A1=AE=E4=BF=9D=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E6=95=B0=E7=BB=84=E4=B8=8D=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/AgentConfigSidebar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))