From 1277f951738cd99ce7cfe25f11df56f5ba2fb1c7 Mon Sep 17 00:00:00 2001 From: pengwei Date: Fri, 23 May 2025 12:05:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:1=E3=80=81=E5=B1=80=E9=95=BF=E4=BF=A1?= =?UTF-8?q?=E7=AE=B1=E5=B1=8F=E8=94=BD=EF=BC=88=E4=BF=A1=E8=AE=BF=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F=EF=BC=892=E3=80=81=E5=85=AC=E5=AE=89=E9=83=A8?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=A8=A1=E6=9D=BF=203=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/negative/verify-description.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/negative/verify-description.vue b/src/components/negative/verify-description.vue index 65e7bbc..11a55b7 100644 --- a/src/components/negative/verify-description.vue +++ b/src/components/negative/verify-description.vue @@ -348,14 +348,23 @@ let confinementQuery = ref({ * */ function rtuenConfinementData(val){ const data = getConfinementData(val) - return data?.find(s=>s.id === val.confinementId); + + if(Array.isArray(data)){ + data.find(s=>s.id === val.confinementId) + }else{ + return null; + } } /** * 领导禁闭处罚 * */ function rtuenLeadConfinementData(val){ const data = getConfinementData(val) - return data?.find(s=>s.id === val.leadConfinementId); + if(Array.isArray(data)){ + data.find(s=>s.id === val.leadConfinementId) + }else{ + return null; + } } /** * 获取禁闭信息