fix(chat): 修改智能体列表
This commit is contained in:
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 后列表「消失」
|
||||
|
||||
Reference in new issue
Block a user