src/Pool/VideoCapture.ts
@@ -1,4 +1,4 @@
import { initCaptureData, monitorRealTimeCaptureData } from "@/api/task";
import { initCaptureData,initCaptureDataTwo, monitorRealTimeCaptureData } from "@/api/task";
export default class VideoCapture {
  public cards: Array<object> = [];
@@ -12,15 +12,18 @@
  }
  public async initCards() {
    const rsp: any = await initCaptureData({
    // const rsp: any = await initCaptureData({
    //   treeNodes: this.cameras
    // });
    const rsp: any = await initCaptureDataTwo({
      treeNodes: this.cameras
    });
    if (rsp && rsp.success && rsp.data.datalist) {
    if (rsp && rsp.success && rsp.data.list.datalist) {
      this.cards = [];
      this.cards.splice(0, this.cards.length)
      rsp.data.datalist.forEach(element => {
      rsp.data.list.datalist.forEach(element => {
        this.cards.push(element)
        // var obj = {
        //   activeObject: (element as any),