From 5043181823923bcf8489d8969d6afea73ca36c4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 12 Jun 2025 14:05:36 +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 --- src/App.vue | 4 ++-- src/views/board/index.vue | 15 ++++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/App.vue b/src/App.vue index 298ce3a..cd669ff 100644 --- a/src/App.vue +++ b/src/App.vue @@ -50,7 +50,7 @@ export default { mounted() { timeInterval = setInterval(() => { this.selectOffLineDevice() - },1000) + }, 1000) console.log('App mounted - 初始化全局WebSocket连接') this.initGlobalWebSocket() @@ -369,7 +369,7 @@ export default { selectOffLineDevice() { Object.keys(this.isOnline).forEach(key => { // console.log(key, new Date().getTime() - this.isOnline[key]) - if (new Date().getTime() - this.isOnline[key] > (1000 * 60 * 30)) { + if (new Date().getTime() - this.isOnline[key] > (1000 * 60 * 60)) { this.$confirm(`设备${key}已离线`, '设备离线', { cancelButtonText: '关闭', showConfirmButton: false, diff --git a/src/views/board/index.vue b/src/views/board/index.vue index 7ac923d..d08d9cd 100644 --- a/src/views/board/index.vue +++ b/src/views/board/index.vue @@ -213,16 +213,16 @@