|
|
@@ -199,14 +199,13 @@
|
|
|
};
|
|
|
|
|
|
//添加相机
|
|
|
- const addCamera = (id: string, streamIp: string) => {
|
|
|
+ const addCamera = (id: string) => {
|
|
|
const existingCamera = cameras.value.find((camera) => camera.id === id);
|
|
|
if (existingCamera) return;
|
|
|
const config = {
|
|
|
width: 52,
|
|
|
height: 37,
|
|
|
image: camImg,
|
|
|
- pushstreamIp: streamIp,
|
|
|
name: 'image',
|
|
|
id: id,
|
|
|
};
|
|
|
@@ -289,7 +288,7 @@
|
|
|
const stage = transformer.value.getNode().getStage();
|
|
|
const groups = stage.find('.group');
|
|
|
const tempList = cloneDeep(cameras.value);
|
|
|
- console.log('cameras.value', cameras.value);
|
|
|
+ // console.log('cameras.value', cameras.value);
|
|
|
|
|
|
const camerasLists = tempList.map((item, index) => {
|
|
|
item.groupConfig.x = groups[index].attrs.x;
|