代码提交

This commit is contained in:
董宏凯 committed 2026-08-24 17:08:22 +08:00
1 parent cdb8aa5f81
commit ebc727e4fd
1 file changed
+6 -1
@@ -77,6 +77,7 @@ import {
} from "@/strategy-components/api/report-structures";
import { useSkills } from "@/core/skills/hooks";
import { desensitize } from "@/lib/desensitize";
import { cn } from "@/lib/utils";
// ── shared helpers ───────────────────────────────────────────────────────────
@@ -1213,12 +1214,16 @@ export function WorkflowConfigButton({
return structuresQuery.data?.find((structure) => structure.content.trim() === content)?.title ?? null;
}, [appliedContent, structuresQuery.data]);
const buttonLabel = selectedWorkflowTitle || "工作流配置";
const isSelected = Boolean(selectedWorkflowTitle);
return (
<>
<Button
aria-label={selectedWorkflowTitle ? `已选择工作流:${selectedWorkflowTitle}` : "工作流配置"}
className={className}
className={cn(
className,
isSelected && "bg-accent text-accent-foreground dark:bg-accent/50",
)}
disabled={disabled}
onClick={() => setOpen(true)}
size={size}