fix:修改跳转页面如果目标页为1则不进行偏移
This commit is contained in:
@@ -195,7 +195,11 @@ export function FilePreview({ fileContent, activeReviewPointResultId, targetPage
|
||||
// 安全地访问ocrResult
|
||||
if (fileContent.ocrResult && fileContent.ocrResult.__meta && fileContent.ocrResult.__meta.page_offset) {
|
||||
// 可以根据需要使用page_offset调整目标页面
|
||||
newTargetPage = targetPage + fileContent.ocrResult.__meta.page_offset;
|
||||
if (targetPage == 1){
|
||||
newTargetPage = targetPage
|
||||
}else{
|
||||
newTargetPage = targetPage + fileContent.ocrResult.__meta.page_offset;
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("访问ocrResult时出错:", error);
|
||||
|
||||
Reference in New Issue
Block a user