linqilong 2 주 전
부모
커밋
146f1b8357
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/Inspect/history.vue

+ 2 - 2
src/views/Inspect/history.vue

@@ -44,11 +44,11 @@ function getInspBase(value, level = 1) {
       return;
     }
     if (level === 2) {
-      twoBatchs.value = res.data.map(item => ({text: item.prsnTitle, value: item.plnaId}))
+      twoBatchs.value = res.data?.map(item => ({text: item.prsnTitle, value: item.plnaId}))
       twoBatch.value = twoBatchs.value[0].value;
       return;
     }
-    baseBatchs.value = res.data.map(item => ({text: item.prsnTitle, value: item.plnaId})).reverse();
+    baseBatchs.value = res.data?.map(item => ({text: item.prsnTitle, value: item.plnaId})).reverse();
     baseBatch.value = baseBatchs.value[0].value;
   });
 }