From 42fc16f1f00d2a4dee62d88a57fe9c5d5a63e530 Mon Sep 17 00:00:00 2001 From: M1LKT <144798909+M1LKT@users.noreply.github.com> Date: Tue, 7 Apr 2026 10:39:38 +0800 Subject: [PATCH] fix: reduce MCP server status polling frequency (#7399) --- dashboard/src/components/extension/McpServersSection.vue | 3 ++- dashboard/src/views/ExtensionPage.vue | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dashboard/src/components/extension/McpServersSection.vue b/dashboard/src/components/extension/McpServersSection.vue index d24bcec58..ae42d8ca6 100644 --- a/dashboard/src/components/extension/McpServersSection.vue +++ b/dashboard/src/components/extension/McpServersSection.vue @@ -284,8 +284,9 @@ export default { mounted() { this.getServers(); this.refreshInterval = setInterval(() => { + // 轮询时间延长到30秒,减少服务器压力,同时保持数据相对新鲜 this.getServers(); - }, 5000); + }, 30000); }, unmounted() { if (this.refreshInterval) { diff --git a/dashboard/src/views/ExtensionPage.vue b/dashboard/src/views/ExtensionPage.vue index ce859296c..c369c5caa 100644 --- a/dashboard/src/views/ExtensionPage.vue +++ b/dashboard/src/views/ExtensionPage.vue @@ -162,7 +162,7 @@ const { - + {{ tm("tabs.handlersOperation") }} @@ -180,7 +180,7 @@ const { - + {{ tm("tabs.installedMcpServers") }} @@ -198,7 +198,7 @@ const { - + {{ tm("tabs.skills") }}