李富豪 před 1 rokem
rodič
revize
2e429a715f

+ 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];
     // 拍照状态