From d2aeb651cf0ba4bdac448538b17eece6beeda144 Mon Sep 17 00:00:00 2001 From: wood chen Date: Mon, 17 Feb 2025 06:03:46 +0800 Subject: [PATCH] fix: Add unoptimized prop to Image components for logo and avatar rendering --- src/components/auth/authorization-card.tsx | 1 + src/components/layout/nav-bar.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/auth/authorization-card.tsx b/src/components/auth/authorization-card.tsx index be8b6de..d1f6585 100644 --- a/src/components/auth/authorization-card.tsx +++ b/src/components/auth/authorization-card.tsx @@ -82,6 +82,7 @@ export function AuthorizationCard({ alt={client.name} width={64} height={64} + unoptimized className="rounded-full object-cover" /> ) : ( diff --git a/src/components/layout/nav-bar.tsx b/src/components/layout/nav-bar.tsx index a31e61a..f941702 100644 --- a/src/components/layout/nav-bar.tsx +++ b/src/components/layout/nav-bar.tsx @@ -67,6 +67,7 @@ export function NavBar() { width={36} height={36} alt={user.name || "用户头像"} + unoptimized className="h-full w-full object-cover" onError={(e) => { const target = e.target as HTMLImageElement;