浏览代码

逻辑判断

李富豪 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];
     // 拍照状态