Browse Source

获取完整镜像信息

release_1.3.0
巴林闲侠 3 years ago
parent
commit
efe5131415
  1. 2
      code/VideoAccess-VCMP/api/app/lib/controllers/mirror/index.js

2
code/VideoAccess-VCMP/api/app/lib/controllers/mirror/index.js

@ -271,7 +271,7 @@ async function get (ctx) {
const curKey = nextKeyPre + index const curKey = nextKeyPre + index
let child = JSON.parse(JSON.stringify(mirrorTrees.filter(mt => mt.dependence == tn.id))) let child = JSON.parse(JSON.stringify(mirrorTrees.filter(mt => mt.dependence == tn.id)))
let cameras = mirrorCameras.filter(mc => mc.treeIds.includes(tn.id)) let cameras = mirrorCameras.filter(mc => mc.treeIds.includes(tn.id))
if (cameras) { if (cameras.length) {
// 有摄像头 向下再创建一级节点 // 有摄像头 向下再创建一级节点
tn.children = cameras.map((c, cIndex) => { tn.children = cameras.map((c, cIndex) => {
return { return {

Loading…
Cancel
Save