Lita-Tako 4 months ago
parent
commit
42c294adc2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/common/player/live_v2.vue

+ 1 - 1
src/components/common/player/live_v2.vue

@@ -198,7 +198,7 @@ export default {
198
       this.getVideo(n.cameraIndexCode).then(resp => {
198
       this.getVideo(n.cameraIndexCode).then(resp => {
199
         if(! resp || ! resp.url) return this.$message.error('无法获取视频地址')
199
         if(! resp || ! resp.url) return this.$message.error('无法获取视频地址')
200
         const url = resp.url
200
         const url = resp.url
201
-        const exists = Object.values(this.videoMap).findIndex(u => u.url === url)
201
+        const exists = Object.values(this.videoMap).findIndex(u => u.cameraIndexCode === n.cameraIndexCode)
202
         if(exists >= 0) {
202
         if(exists >= 0) {
203
           return this.$message.warning(`该视频已经在 ${exists + 1} 窗口播放`)
203
           return this.$message.warning(`该视频已经在 ${exists + 1} 窗口播放`)
204
         }
204
         }