From 36ac3def8f51a427f1df33da30f82d813a276636 Mon Sep 17 00:00:00 2001 From: WuYongJie <549727955@qq.com> Date: Thu, 5 Nov 2026 09:49:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A7=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E4=BF=9D=E6=8C=81=E5=BD=92=E6=A1=A3=E5=85=A5=E5=8F=A3=E5=B9=B6?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E5=9B=9E=E9=80=80=E5=A4=B1=E6=95=88=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/image-preview.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/image-preview.tsx b/components/image-preview.tsx index 0c6a89d8a..b80820879 100644 --- a/components/image-preview.tsx +++ b/components/image-preview.tsx @@ -1,5 +1,5 @@ "use client"; -import { isRetiredStorageUrl, RETIRED_STORAGE_MESSAGE } from "@/lib/storage/retired-storage"; +import { isRetiredStorageUrl, normalizeLegacyAliyunStorageUrl, RETIRED_STORAGE_MESSAGE } from "@/lib/storage/retired-storage"; import dynamic from "next/dynamic"; import React, { useState, useEffect } from "react"; @@ -313,7 +313,7 @@ export function ImagePreview({ event.currentTarget.alt = "Generated Image"; }} onError={(event) => { - if (event.currentTarget.src !== (thumbnail || original)) { + if (!normalizeLegacyAliyunStorageUrl(thumbnail || original) && event.currentTarget.src !== (thumbnail || original)) { event.currentTarget.src = thumbnail || original; } else if (!compactGrid) { event.currentTarget.style.aspectRatio = "1"; @@ -610,7 +610,7 @@ export function ImagePreview({ onClick={(e: React.MouseEvent) => e.stopPropagation()} >