diff --git a/src/components/dashboard/AgentInfraPanel.tsx b/src/components/dashboard/AgentInfraPanel.tsx index 7dcd6f2..d1571c2 100644 --- a/src/components/dashboard/AgentInfraPanel.tsx +++ b/src/components/dashboard/AgentInfraPanel.tsx @@ -100,7 +100,7 @@ export function AgentInfraPanel({ } async function handleGenerate() { - if (!contracts.length) return; + // 契约为空也允许生成——产出空模板骨架(与"未检测到框架特征,可直接生成空模板"文案一致) setGenerating(true); setError(null); try {