From 88396f00577f50ccfc6eb955157487471c49362e Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 25 Mar 2025 15:26:30 +0800 Subject: [PATCH] . --- apps/blogai/components/header.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/blogai/components/header.tsx b/apps/blogai/components/header.tsx index 53867d4..336c693 100644 --- a/apps/blogai/components/header.tsx +++ b/apps/blogai/components/header.tsx @@ -146,7 +146,12 @@ export function DetailPageHeader({ data }: { data: any }) { onClick={() => handleClick("icon")} disabled={loading} > - {data?.icon || "Deploy"} + {typeof data?.icon === "string" && + (data.icon.startsWith("http") || data.icon.startsWith("/")) ? ( + icon + ) : ( + data?.icon || "Deploy" + )} {/* 右信息区域(带图标) */} @@ -181,7 +186,6 @@ export function DetailPageHeader({ data }: { data: any }) { } - // export function Header() { // const router = useRouter();