feat: display all pdf pages and add DocumentPreview (#88)

* feat: add DocumentPreview

* feat: display all pdf pages
This commit is contained in:
balibabu
2024-03-01 11:28:58 +08:00
committed by GitHub
parent 3d4315c42a
commit 5fb8989bb1
17 changed files with 813 additions and 43 deletions

View File

@@ -13,7 +13,7 @@ export interface ChunkModelState extends BaseState {
chunk_id: string;
doc_id: string;
chunkInfo: any;
documentInfo: Partial<IKnowledgeFile>;
documentInfo: IKnowledgeFile;
available?: number;
}
@@ -26,7 +26,7 @@ const model: DvaModel<ChunkModelState> = {
chunk_id: '',
doc_id: '',
chunkInfo: {},
documentInfo: {},
documentInfo: {} as IKnowledgeFile,
pagination: {
current: 1,
pageSize: 10,