From 6c72391768ffd8974dd079445c56f1ab13f1f1ca Mon Sep 17 00:00:00 2001 From: AdingApkgg Date: Fri, 26 Dec 2025 20:17:06 +0800 Subject: [PATCH] Refactor VndbPanel.vue to streamline image loading and translation handling - Removed lazy loading attribute from images for improved performance. - Simplified the logic for loading characters and quotes, integrating automatic translation upon loading. - Cleaned up unused imports and optimized the code structure for better maintainability. --- src/components/VndbPanel.vue | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/src/components/VndbPanel.vue b/src/components/VndbPanel.vue index bc9dcfd..eb188ee 100644 --- a/src/components/VndbPanel.vue +++ b/src/components/VndbPanel.vue @@ -522,7 +522,6 @@ :src="screenshot" :alt="`${searchStore.vndbInfo.mainName} 截图 ${index + 1}`" class="w-full h-auto cursor-pointer group-hover:scale-105 transition-transform duration-300" - loading="lazy" @load="screenshotsReady = true" @error="handleImageError" /> @@ -537,7 +536,7 @@