From a689af1348938afd3b4506aad9b6d5057193e25d Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期五, 27 五月 2022 09:59:00 +0800
Subject: [PATCH] bug修复

---
 src/Pool/VideoRuleData.ts |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/Pool/VideoRuleData.ts b/src/Pool/VideoRuleData.ts
index a49fec8..78bf26f 100644
--- a/src/Pool/VideoRuleData.ts
+++ b/src/Pool/VideoRuleData.ts
@@ -11,6 +11,8 @@
   public canvasData: object;
   public baseImg: string;
   public cameraName: string;
+  public type:number;
+  public rtsp:string;
   public camearInfo: object;
 
   public loading: boolean;
@@ -28,6 +30,8 @@
     this.baseImg = "";
     this.cameraId = id ? id : "";
     this.cameraName = "";
+    this.rtsp = "";
+    this.type = 0;
     this.selectTask = [];
     this.polygonData = [];
     this.canvasData = {
@@ -80,9 +84,13 @@
         const rsp: any = await getCameraInfo(this.cameraId);
         if (rsp.success) {
           this.cameraName = rsp.data.name ? rsp.data.name : "";
+          this.rtsp = rsp.data.rtsp ? rsp.data.rtsp : "";
+          this.type = rsp.data.type ? rsp.data.type : 0;
         }
       } catch {
         this.cameraName = "";
+        this.type = 0
+        this.rtsp = ''
       }
     } else {
       const rsp: any = await findAllFileByStackId({ stackId: this.cameraId });

--
Gitblit v1.8.0