Lita-Tako 4 maanden geleden
bovenliggende
commit
42c294adc2
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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 198
       this.getVideo(n.cameraIndexCode).then(resp => {
199 199
         if(! resp || ! resp.url) return this.$message.error('无法获取视频地址')
200 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 202
         if(exists >= 0) {
203 203
           return this.$message.warning(`该视频已经在 ${exists + 1} 窗口播放`)
204 204
         }