fix: deduplicate knowledge content search results
This commit is contained in:
@@ -486,7 +486,7 @@ async function confirmAction(
|
||||
<div class="content-search-hit-main">
|
||||
<div class="content-search-hit-title">
|
||||
<strong>{{ item.title }}</strong>
|
||||
<el-tag size="small" effect="plain">{{ contentItemTypeLabel(item.itemType) }}</el-tag>
|
||||
<el-tag v-for="type in item.itemTypes || [item.itemType]" :key="type" size="small" effect="plain">{{ contentItemTypeLabel(type) }}</el-tag>
|
||||
<el-tag size="small" :type="item.canAgentUse ? 'success' : 'warning'">{{ item.canAgentUse ? '可参与召回' : '不可默认召回' }}</el-tag>
|
||||
</div>
|
||||
<p class="content-search-hit-meta">
|
||||
|
||||
@@ -221,6 +221,7 @@ export interface KnowledgeContentSearchItem {
|
||||
versionNo: number;
|
||||
publishedAt?: string | null;
|
||||
itemType: "section" | "card" | "chunk";
|
||||
itemTypes?: Array<"section" | "card" | "chunk">;
|
||||
itemId: number;
|
||||
sectionId: number;
|
||||
sectionKey: string;
|
||||
|
||||
Reference in New Issue
Block a user