From f137bb34c3e9a7e2742cd8b88e004c7a958ff3b6 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期二, 02 八月 2022 19:30:41 +0800 Subject: [PATCH] 打包污染修复 --- src/Pool/TreeData.ts | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/Pool/TreeData.ts b/src/Pool/TreeData.ts index 7156994..1ff4151 100644 --- a/src/Pool/TreeData.ts +++ b/src/Pool/TreeData.ts @@ -67,6 +67,8 @@ public baseImageLoading: boolean public activeNode: string + public clusterId: string + public devId: string constructor() { @@ -108,6 +110,8 @@ this.gb28181CameraBaseImage = "" this.baseImageLoading = false this.activeNode = '' + this.clusterId = '' + this.devId = '' } @@ -447,7 +451,7 @@ } async refreshGB28181() { - await refreshGB28181Tree() + await refreshGB28181Tree({}) // this.fetchGbTree() } @@ -485,7 +489,10 @@ if (update) { fn = refreshGB28181Tree } - const rsp: any = await fn() + const rsp: any = await fn({ + clusterId:this.clusterId, + devId:this.devId, + }) if (rsp && rsp.success) { this.selectedNode = {} @@ -541,7 +548,11 @@ this.cameraNameForBaseImage = node.name try { - const rsp: any = await getCameraBaseImage({ id: node.id }) + const rsp: any = await getCameraBaseImage({ + id: node.id, + clusterId: this.clusterId, + devId: this.devId, + }) if (rsp && rsp.data) { this.gb28181CameraBaseImage = rsp.data -- Gitblit v1.8.0