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