From 22cbb0c6bf4bb61daca6145d67949073b81866a0 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 28 Apr 2022 10:30:52 +0800 Subject: [PATCH] 29369 --- .../components/AiSlwVideo.vue | 42 ++++--------------- 1 file changed, 9 insertions(+), 33 deletions(-) diff --git a/packages/IntelligentSecurity/components/AiSlwVideo.vue b/packages/IntelligentSecurity/components/AiSlwVideo.vue index dd9de93e..5a5530e1 100644 --- a/packages/IntelligentSecurity/components/AiSlwVideo.vue +++ b/packages/IntelligentSecurity/components/AiSlwVideo.vue @@ -7,12 +7,7 @@ 关闭视频 -
@@ -20,24 +15,13 @@
- +
-
- +
+
- +
@@ -63,19 +47,10 @@
- + - + @@ -128,7 +103,8 @@ computed: { src () { if (this.playbackUrls.length) { - return this.playbackUrls.filter(v => v.id === this.id)[0].playbackUrl + const arr = this.playbackUrls.filter(v => v.id === this.id) + return arr.length ? arr[0].playbackUrl : [] } if (this.isLiveing) {