李富豪 преди 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];
     // 拍照状态