From bc8f36e36727ab53026e08a3af69d57fad378f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Wed, 11 Dec 2024 10:26:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/board/index.vue | 1 - ruoyi-ui/src/views/board/monitor.vue | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/board/index.vue b/ruoyi-ui/src/views/board/index.vue index 86927a8..6121699 100644 --- a/ruoyi-ui/src/views/board/index.vue +++ b/ruoyi-ui/src/views/board/index.vue @@ -600,7 +600,6 @@ export default { // 当服务器发送消息时触发 socket.onmessage = function (event) { - console.log('收到消息:', event.data); if (event.data.AlarmInfo) { this.AlarmInfo = event.data.AlarmInfo } diff --git a/ruoyi-ui/src/views/board/monitor.vue b/ruoyi-ui/src/views/board/monitor.vue index 5232d79..fb8a4f7 100644 --- a/ruoyi-ui/src/views/board/monitor.vue +++ b/ruoyi-ui/src/views/board/monitor.vue @@ -70,6 +70,10 @@ export default { setTimeout(function () { getChannelInfo(); getDevicePort(); + setTimeout(()=>{ + + clickStartRealPlay() + },2000) }, 10); }, error: function (status, xmlDoc) { @@ -112,7 +116,6 @@ export default { name = "Camera " + (i < 9 ? "0" + (i + 1) : (i + 1)); } }); - clickStartRealPlay() }, error: function (status, xmlDoc) { }