diff --git a/src/components/layout/dashboard-header.tsx b/src/components/layout/dashboard-header.tsx index 3dbcb8d..e3071c5 100644 --- a/src/components/layout/dashboard-header.tsx +++ b/src/components/layout/dashboard-header.tsx @@ -1,33 +1,12 @@ -"use client"; - -import { usePathname } from "next/navigation"; +import { DashboardTitle } from "@/components/layout/dashboard-title"; import { Header } from "./header"; export function DashboardHeader() { - const pathname = usePathname(); - - const getTitle = () => { - if (pathname === "/dashboard") return "控制台"; - if (pathname === "/dashboard/clients") return "应用管理"; - if (pathname.includes("/dashboard/clients/")) return "应用详情"; - if (pathname === "/dashboard/settings") return "账号设置"; - if (pathname === "/admin/users") return "用户列表"; - if (pathname === "/admin/logs") return "系统日志"; - if (pathname === "/admin") return "管理后台"; - if (pathname === "/admin/clients") return "应用管理"; - if (pathname === "/admin/authorizations") return "授权管理"; - return ""; - }; - return (