知识库文档数量同步

This commit is contained in:
2025-11-07 16:09:00 +08:00
parent 7edc4f3a35
commit 495e3569e2
3 changed files with 74 additions and 20 deletions

View File

@@ -23,10 +23,10 @@
<div class="knowledge-avatar">
<el-image
v-if="knowledge.avatar"
:src="knowledge.avatar"
:src="FILE_DOWNLOAD_URL + knowledge.avatar"
fit="cover"
/>
<el-icon v-else :size="48"><Document /></el-icon>
<el-icon v-else :size="48">📚</el-icon>
</div>
<div class="knowledge-details">
<h2 class="knowledge-name">{{ knowledge.title }}</h2>
@@ -230,6 +230,7 @@ import {
import type { AiKnowledge, AiUploadFile } from '@/types/ai';
import { fileUploadApi } from '@/apis/ai';
import { DocumentSegmentDialog } from './';
import { FILE_DOWNLOAD_URL } from '@/config';
defineOptions({
name: 'KnowledgeInfo'
@@ -476,6 +477,7 @@ function formatFileSize(bytes: number | undefined): string {
display: flex;
flex-direction: column;
z-index: 10;
box-sizing: border-box;
}
.panel-header {