fix(chat): 智能体支持配置分级显示

This commit is contained in:
sophie committed 2026-06-25 17:37:48 +08:00
1 parent a451951e7a
commit 70d7435b5f
27 files changed
+645 -76

No files matched your search

@@ -161,6 +161,26 @@ const ws = inject(WORKSPACE_KEY)! as any;
<!-- Content: All Agents -->
<div v-if="section.id === 'all_agents'">
<div class="mb-4 flex flex-wrap gap-2">
<button
type="button"
class="rounded-full px-3 py-1.5 text-xs font-medium transition-colors"
:class="!ws.selectedCategory ? 'bg-brand-600 text-white' : 'bg-surface-soft text-secondary hover:bg-slate-100'"
@click="ws.selectedCategory = null"
>
{{ $t('workspace.agentCategory.all') }}
</button>
<button
v-for="category in ws.agentCategories"
:key="category"
type="button"
class="rounded-full px-3 py-1.5 text-xs font-medium transition-colors"
:class="ws.selectedCategory === category ? 'bg-brand-600 text-white' : 'bg-surface-soft text-secondary hover:bg-slate-100'"
@click="ws.selectedCategory = category"
>
{{ category }}
</button>
</div>
<div class="mb-6">
<input v-model="ws.searchQuery" type="text" :placeholder="$t('workspace.search')" class="input-field max-w-md shadow-sm" />
</div>