章志文 hai 2 semanas
pai
achega
4dd13bdc6b

+ 2 - 2
src/views/system/stations/components/verificationCertificate.vue

@@ -192,7 +192,7 @@ const getCertList = async () => {
   certData.value = props.sensorList?.filter(item =>
     item.se_state == 1
   )
-  certData.value.forEach(obj1 => {
+  certData.value?.forEach(obj1 => {
     const matchingObj2 = data?.list?.find(obj2 => obj2.se_type === obj1.se_type);
     if (matchingObj2) {
       obj1.cal_sn = matchingObj2.cal_sn;
@@ -204,7 +204,7 @@ const getCertList = async () => {
   certData2.value = props.sensorList?.filter(item =>
     item.se_state == 2
   )
-  certData2.value.forEach(obj1 => {
+  certData2.value?.forEach(obj1 => {
     const matchingObj2 = data?.list?.find(obj2 => obj2.se_type === obj1.se_type);
     if (matchingObj2) {
       obj1.cal_sn = matchingObj2.cal_sn;