This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git


The following commit(s) were added to refs/heads/test by this push:
     new 354c8e53 fix: Optimize external resource image blocking
354c8e53 is described below

commit 354c8e5361583195b9a680bca85468dbf2ecbe9e
Author: shuai <[email protected]>
AuthorDate: Fri Mar 14 11:54:28 2025 +0800

    fix: Optimize external resource image blocking
---
 ui/src/pages/Layout/index.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ui/src/pages/Layout/index.tsx b/ui/src/pages/Layout/index.tsx
index e61d5afd..3ed8a8ac 100644
--- a/ui/src/pages/Layout/index.tsx
+++ b/ui/src/pages/Layout/index.tsx
@@ -86,7 +86,7 @@ const Layout: FC = () => {
     ) as NodeListOf<HTMLImageElement>;
 
     images.forEach((img) => {
-      // 标记为已处理,避免重复处理
+      // Mark as processed to avoid duplication
       img.setAttribute('data-processed', 'true');
 
       if (
@@ -122,7 +122,6 @@ const Layout: FC = () => {
           });
         }
       });
-      // 如果发现新图片,处理它们
       if (hasNewImages) {
         replaceImgSrc();
       }

Reply via email to