From 66ffcb0a504de46c3e312e30f2f2e0e86e59ee93 Mon Sep 17 00:00:00 2001 From: annnj-company <380904787@qq.com> Date: Mon, 27 Apr 2026 15:18:06 +0800 Subject: [PATCH] no commit message --- pgweb/src/libs/socket.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pgweb/src/libs/socket.js b/pgweb/src/libs/socket.js index 18a187d..2a8f0c5 100644 --- a/pgweb/src/libs/socket.js +++ b/pgweb/src/libs/socket.js @@ -40,7 +40,7 @@ socket.on('connect_timeout', () => { // 定时轮询定时器 let pollingTimer = null -// 启动定时轮询(每10秒) +// 启动定时轮询(每30秒) function startPolling() { if (pollingTimer) { clearInterval(pollingTimer) @@ -48,8 +48,8 @@ function startPolling() { pollingTimer = setInterval(() => { // 触发刷新事件,让客户端主动获取最新数据 socket.emit('refreshAllCounts') - }, 10000) // 每10秒刷新一次 - console.log('定时轮询已启动,每5秒刷新一次') + }, 30000) // 每30秒刷新一次 + console.log('定时轮询已启动,每30秒刷新一次') } // 停止定时轮询