预加载和适配屏幕修复

This commit is contained in:
mtvpls
2026-04-17 11:03:18 +08:00
parent d3b267380f
commit 496c0683c1
3 changed files with 53 additions and 8 deletions
+4
View File
@@ -16,6 +16,8 @@ const ProxyImage: React.FC<ProxyImageProps> = ({
displaySrc,
retryDelay = 2000,
retryOnError = true,
loading = 'lazy',
decoding = 'async',
onError,
src: _src,
...props
@@ -41,6 +43,8 @@ const ProxyImage: React.FC<ProxyImageProps> = ({
<img
{...props}
src={displaySrc || processImageUrl(originalSrc)}
loading={loading}
decoding={decoding}
onError={handleError}
/>
);