소스 검색

逻辑判断

李富豪 1 년 전
부모
커밋
2e429a715f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Web/src/components/airport/components/InfoModal.vue

+ 1 - 1
Web/src/components/airport/components/InfoModal.vue

@@ -1038,7 +1038,7 @@ watch(() => props.deviceInfo, (newValue) => {
   if (!newValue) {
     return;
   }
-  const cameras = newValue.device.cameras;
+  const cameras = newValue.device?.cameras;
   if (cameras && cameras.length > 0) {
     const cameraInfo = cameras[0];
     // 拍照状态