fix: Add unoptimized prop to Image components for logo and avatar rendering

This commit is contained in:
wood chen 2025-02-17 06:03:46 +08:00
parent 0c1d7fceea
commit d2aeb651cf
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ export function AuthorizationCard({
alt={client.name} alt={client.name}
width={64} width={64}
height={64} height={64}
unoptimized
className="rounded-full object-cover" className="rounded-full object-cover"
/> />
) : ( ) : (

View File

@ -67,6 +67,7 @@ export function NavBar() {
width={36} width={36}
height={36} height={36}
alt={user.name || "用户头像"} alt={user.name || "用户头像"}
unoptimized
className="h-full w-full object-cover" className="h-full w-full object-cover"
onError={(e) => { onError={(e) => {
const target = e.target as HTMLImageElement; const target = e.target as HTMLImageElement;