章志文 2 weeks ago
parent
commit
4dd13bdc6b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/system/stations/components/verificationCertificate.vue

+ 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;