From dc8ad4de523545b4aa72a64b7b67431afe36f0ed Mon Sep 17 00:00:00 2001 From: caohuipeng Date: Thu, 21 May 2026 13:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E7=94=A8=E5=BA=94=E7=94=A8=E5=8F=AA?= =?UTF-8?q?=E6=98=BE=E7=A4=BADify=E5=BA=94=E7=94=A8=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=BAChatflow=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/ChatView.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/ChatView.vue b/frontend/src/views/ChatView.vue index cfaee995..494c8cda 100644 --- a/frontend/src/views/ChatView.vue +++ b/frontend/src/views/ChatView.vue @@ -589,7 +589,7 @@ const copiedIndex = ref(null); const { messages, isThinking, conversationId, sendMessage } = useChat(); const input = ref(''); const currentAgent = ref(null); -const userAgents = ref>([]); +const userAgents = ref>([]); const showGeneralFeedbackDialog = ref(false); const showAgentPanel = ref(true); @@ -1689,7 +1689,9 @@ const loadUserAgents = async () => { const res = await fetch('/api/agents', { headers: getAuthHeaders() }); if (res.ok) { const agents = await res.json(); - userAgents.value = Array.isArray(agents) ? agents.filter((a: any) => a.id !== agentId) : []; + userAgents.value = Array.isArray(agents) + ? agents.filter((a: any) => a.id !== agentId && (a.dify_app_type || 'chatflow') === 'chatflow') + : []; if (userAgents.value.length === 0) { showAgentPanel.value = false; }