fix: refine AI agent config dialog header

This commit is contained in:
mlogclub
2026-06-22 11:33:35 +08:00
parent 7308e848fb
commit d19b5054e7
3 changed files with 3 additions and 16 deletions
+1 -6
View File
@@ -1,6 +1,5 @@
"use client"
import { useRouter } from "next/navigation"
import { useState } from "react"
import { AIAgentConfigWorkbench } from "../_components/config-workbench"
@@ -11,15 +10,11 @@ function readAgentIdFromLocation() {
}
export default function DashboardAIAgentConfigPage() {
const router = useRouter()
const [agentId] = useState(() => readAgentIdFromLocation())
return (
<div className="h-[calc(100vh-var(--header-height))] min-h-0">
<AIAgentConfigWorkbench
agentId={agentId}
onClose={() => router.push("/dashboard/ai-agents")}
/>
<AIAgentConfigWorkbench agentId={agentId} />
</div>
)
}