From 8828d01eae07fec519fac56e239914e237317b79 Mon Sep 17 00:00:00 2001 From: ji ruo <79234113+RuoJi6@users.noreply.github.com> Date: Fri, 30 Oct 2026 12:04:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=E6=8A=A5=E5=91=8A=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=AF=B9=E8=AF=9D=E6=94=B9=E4=B8=BA=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/app/(main)/function/findings/detail/page.tsx | 1 + web/src/components/finding-auto-chat.tsx | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/web/src/app/(main)/function/findings/detail/page.tsx b/web/src/app/(main)/function/findings/detail/page.tsx index a9334e8..bc9455c 100644 --- a/web/src/app/(main)/function/findings/detail/page.tsx +++ b/web/src/app/(main)/function/findings/detail/page.tsx @@ -423,6 +423,7 @@ function FindingDetailInner() { agentKey="reporter" agentLabel="报告撰写 Agent" promptPlaceholder="描述要如何调整漏洞报告…" + modal open={reportChatOpen} onOpenChange={setReportChatOpen} /> diff --git a/web/src/components/finding-auto-chat.tsx b/web/src/components/finding-auto-chat.tsx index 6d70788..a3ff0f7 100644 --- a/web/src/components/finding-auto-chat.tsx +++ b/web/src/components/finding-auto-chat.tsx @@ -25,6 +25,7 @@ export function FindingAutoChat({ agentKey = "auto", agentLabel = "Auto Agent", promptPlaceholder = "询问这个漏洞…", + modal = false, open, onOpenChange, }: { @@ -33,6 +34,7 @@ export function FindingAutoChat({ agentKey?: string; agentLabel?: string; promptPlaceholder?: string; + modal?: boolean; open: boolean; onOpenChange: (open: boolean) => void; }) { @@ -209,8 +211,12 @@ export function FindingAutoChat({ if (!open) return null; return ( -