fix(chat): 修改智能体列表

This commit is contained in:
sophie committed 2026-06-29 15:26:11 +08:00
1 parent cafce5cfa9
commit 7e4a2037d8
8 files changed
+71 -17

No files matched your search

@@ -173,7 +173,7 @@ export function useChatAgent(options: UseChatAgentOptions) {
try {
const agents = await listUserAgents();
const filtered = Array.isArray(agents)
? agents.filter((a: any) => a.id !== currentAgentId.value && (a.dify_app_type || 'chatflow') === 'chatflow')
? agents.filter((a: any) => (a.dify_app_type || 'chatflow') === 'chatflow')
: [];
userAgents.value = sortAgentsByCategory(filtered);
// [STEP 1] 有可切换智能体时默认展开面板;避免切换 Agent 后列表「消失」