|
@@ -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
|
}
|