1.排程管理新增企业微信通知功能
2.可用应用以及智能体显示只显示Chatflow类型应用
This commit is contained in:
1 parent
dc8ad4de52
commit
05913f742f
8 files changed
+264
-15
No files matched your search
@@ -89,6 +89,7 @@ interface Agent {
|
||||
name: string;
|
||||
description: string;
|
||||
icon_url?: string;
|
||||
dify_app_type?: 'chatflow' | 'workflow';
|
||||
}
|
||||
|
||||
interface QuickQuestion {
|
||||
@@ -244,9 +245,10 @@ const favoriteAgents = computed(() => {
|
||||
});
|
||||
|
||||
const otherAgents = computed(() => {
|
||||
if (!searchQuery.value.trim()) return agents.value;
|
||||
const chatflowAgents = agents.value.filter((a) => (a.dify_app_type || 'chatflow') === 'chatflow');
|
||||
if (!searchQuery.value.trim()) return chatflowAgents;
|
||||
const q = searchQuery.value.toLowerCase();
|
||||
return agents.value.filter(
|
||||
return chatflowAgents.filter(
|
||||
(a) => a.name.toLowerCase().includes(q) || a.description.toLowerCase().includes(q)
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user