From cff0ad3dff2a71318e80c22676be0a2438724a8c Mon Sep 17 00:00:00 2001 From: jingrow Date: Sat, 8 Nov 2025 03:02:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8A=82=E7=82=B9=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/flows/components/Sidebar/NodePalette.vue | 9 --------- 1 file changed, 9 deletions(-) diff --git a/apps/jingrow/frontend/src/core/features/flows/components/Sidebar/NodePalette.vue b/apps/jingrow/frontend/src/core/features/flows/components/Sidebar/NodePalette.vue index d32898a..70209b1 100644 --- a/apps/jingrow/frontend/src/core/features/flows/components/Sidebar/NodePalette.vue +++ b/apps/jingrow/frontend/src/core/features/flows/components/Sidebar/NodePalette.vue @@ -26,8 +26,6 @@ async function refreshNodeList() { ALL_NODE_TYPES.value = getAllNodeTypes(); } -let checkInterval = null; - // 异步加载节点元数据 onMounted(async () => { await refreshNodeList(); @@ -35,10 +33,6 @@ onMounted(async () => { // 监听节点更新事件,当新节点安装后自动刷新 if (typeof window !== 'undefined') { window.addEventListener('nodeMetadataUpdated', refreshNodeList); - // 定期检查节点更新(每30秒,作为备用机制) - checkInterval = setInterval(() => { - refreshNodeList(); - }, 30000); } }); @@ -46,9 +40,6 @@ onMounted(async () => { onUnmounted(() => { if (typeof window !== 'undefined') { window.removeEventListener('nodeMetadataUpdated', refreshNodeList); - if (checkInterval) { - clearInterval(checkInterval); - } } });