优化U3页面:在确认逻辑中增加对选定ID的存储

This commit is contained in:
yuchenglong
2025-12-02 18:29:56 +08:00
parent 93b50d7a5d
commit 408221fc66

View File

@@ -28,6 +28,10 @@ const U3: React.FC = () => {
getOptionalItemList(idCardNo)
.then((res) => {
if (res.Status === 200) {
localStorage.setItem(
"selectedExamId",
res.Data.packageInfo.physical_exam_id.toString() || ""
);
if (
res.Data?.packageInfo?.is_optional_package === 1 &&
res.Data.packageInfo.registration_time.length > 0