知识库文档数量同步
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user