From 6a627f356d65816c3ecd17444382d6d4493b8e77 Mon Sep 17 00:00:00 2001 From: yorn <1057707203@qq.com> Date: Thu, 30 Oct 2025 18:20:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E9=94=80=E5=9B=BA=E5=AE=9A=E5=B0=81?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/reviews/FilePreview.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/components/reviews/FilePreview.tsx b/app/components/reviews/FilePreview.tsx index e54934d..1336a28 100644 --- a/app/components/reviews/FilePreview.tsx +++ b/app/components/reviews/FilePreview.tsx @@ -195,11 +195,7 @@ export function FilePreview({ fileContent, activeReviewPointResultId, targetPage // 安全地访问ocrResult if (fileContent.ocrResult && fileContent.ocrResult.__meta && fileContent.ocrResult.__meta.page_offset) { // 可以根据需要使用page_offset调整目标页面 - if (targetPage == 1){ - newTargetPage = targetPage - }else{ - newTargetPage = targetPage + fileContent.ocrResult.__meta.page_offset; - } + newTargetPage = targetPage + fileContent.ocrResult.__meta.page_offset; } } catch (error) { console.error("访问ocrResult时出错:", error);