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