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