fix: align agent no-hit handling

This commit is contained in:
2026-07-30 14:36:09 +08:00
parent d1f573108e
commit 77a899e24c
5 changed files with 71 additions and 25 deletions

View File

@@ -74,7 +74,7 @@ const selectedModelName = computed(() => {
return model?.displayName || model?.modelName || "未选择模型";
});
const selectedKnowledgeSummary = computed(() => {
if (!agentForm.knowledgeIds.length) return "未选择知识库";
if (!agentForm.knowledgeIds.length) return "默认使用全部正式开放知识库";
if (agentForm.knowledgeIds.length === 1) {
return knowledge.value.find((item) => item.id === agentForm.knowledgeIds[0])?.name || "1 个知识库";
}