撤销固定封面的改动

This commit is contained in:
2025-10-30 18:20:35 +08:00
parent 8358b7a585
commit 6a627f356d
-4
View File
@@ -195,12 +195,8 @@ 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;
}
}
} catch (error) {
console.error("访问ocrResult时出错:", error);
toastService.error("访问ocrResult时出错:" + (error instanceof Error ? error.message : '未知错误'));