From f4d89c64d800fbcb5a544c0dd63bcc568638a79b Mon Sep 17 00:00:00 2001 From: RuoJi6 <79234113+RuoJi6@users.noreply.github.com> Date: Tue, 15 Sep 2026 19:53:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E4=BB=BB=E5=8A=A1=E5=A4=8D?= =?UTF-8?q?=E6=B5=8B=E6=BC=8F=E6=B4=9E=E9=80=89=E9=A1=B9=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=88=86=E5=89=B2=E7=BA=BF=20(#122)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在复测页签的漏洞选择列表项之间插入 shadcn Separator,改善视觉分组。保留选中状态、严重性与处置状态标签,滚动与选择行为不变。 --- .../tasks/detail/_tabs/retests-tab.tsx | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/web/src/app/(main)/function/tasks/detail/_tabs/retests-tab.tsx b/web/src/app/(main)/function/tasks/detail/_tabs/retests-tab.tsx index 411c86d..ae36bf6 100644 --- a/web/src/app/(main)/function/tasks/detail/_tabs/retests-tab.tsx +++ b/web/src/app/(main)/function/tasks/detail/_tabs/retests-tab.tsx @@ -12,6 +12,7 @@ import { Alert, AlertDescription } from "@/components/ui/alert"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"; import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "@/components/ui/empty"; +import { Separator } from "@/components/ui/separator"; import { Skeleton } from "@/components/ui/skeleton"; import { api } from "@/lib/api"; import type { Finding, FindingsPage } from "@/lib/types"; @@ -85,23 +86,25 @@ export function RetestsTab({ taskId }: { taskId: string }) { 选择漏洞{data ? ` · ${data.total}` : ""} 查看本任务漏洞的复测记录,或发起新的复测。 - + {!loaded && !error ? : null} - {findings.map((finding) => ( - + {findings.map((finding, index) => ( + + {index > 0 ? : null} + + ))} {loaded && findings.length === 0 ? (