diff --git a/src/views/pages/civilizedCity/index.vue b/src/views/pages/civilizedCity/index.vue index 4c76b68..4f772e2 100644 --- a/src/views/pages/civilizedCity/index.vue +++ b/src/views/pages/civilizedCity/index.vue @@ -506,7 +506,12 @@ export default { bus.$off('openCurrentVideoSurveillance') bus.$on('openCurrentVideoSurveillance', (channelCode) => { this.openVideo = true - this.channelCode.unshift(channelCode) + if (!this.channelCode.includes(channelCode)) { + console.log(this.channelCode, channelCode, '====>实时监控') + this.channelCode.unshift(channelCode) + } else { + this.$message.warning('该实时监控已经加入视频列表了!') + } }) bus.$off('closeVideoDia') bus.$on('closeVideoDia', () => { diff --git a/src/views/pages/construction/index.vue b/src/views/pages/construction/index.vue index 8df9d8d..bb132d5 100644 --- a/src/views/pages/construction/index.vue +++ b/src/views/pages/construction/index.vue @@ -74,36 +74,36 @@