diff --git a/components/image-preview.tsx b/components/image-preview.tsx index da33459..1eeaacb 100644 --- a/components/image-preview.tsx +++ b/components/image-preview.tsx @@ -171,6 +171,11 @@ export function ImagePreview({ }; const { thumbnail, original, maxWidth, is4K } = parseImageUrls(); + const preferOriginalForPreview = maxWidth >= 380 && original && original !== thumbnail; + const previewSrc = preferOriginalForPreview ? original : thumbnail; + const previewSrcSet = original + ? `${thumbnail} 1x, ${original} 2x` + : undefined; // 下载图片函数(下载原图) const handleDownload = async () => { @@ -243,7 +248,8 @@ export function ImagePreview({ {/* 缩略图(显示压缩后的缩略图)*/}