From 32bee8799872185756929110da69157950a564a4 Mon Sep 17 00:00:00 2001 From: wren Date: Mon, 23 Mar 2026 01:05:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(reviews):=20show=20field=20value=20when=20r?= =?UTF-8?q?es=3Dfalse=20instead=20of=20showing=20'=E7=BC=BA=E5=A4=B1'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Second rendering path (entity fields) incorrectly hid values when res=false, showing '缺失' even for fields with extracted values. Fixed to match first rendering path: only show '缺失' when both res=false AND value is empty. Values always display when present. Co-Authored-By: Claude Opus 4.6 (1M context) --- app/components/reviews/ReviewPointsList.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/components/reviews/ReviewPointsList.tsx b/app/components/reviews/ReviewPointsList.tsx index 14e7577..69b5937 100644 --- a/app/components/reviews/ReviewPointsList.tsx +++ b/app/components/reviews/ReviewPointsList.tsx @@ -1746,16 +1746,16 @@ export function ReviewPointsList({ {!value.page && (reviewPoint.contentPage && !reviewPoint.contentPage[key]) && ( )} - {/* 缺失显示 */} - {!res && ( + {/* 缺失显示:仅在无值时显示 */} + {!res && !value.value && ( 缺失 )} - - {/* 主要值显示 */} - {res && ( + + {/* 主要值显示:有值就显示,不受res影响 */} + {value.value && ( )}