fix: display total items on chunk list page #900 (#1584)

### What problem does this PR solve?
fix: display total items on chunk list page #900

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu 2024-07-18 11:38:02 +08:00 committed by GitHub
parent 4d10dbcf95
commit 478cd006d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -203,6 +203,12 @@ const Chunk = () => {
current={pagination.current}
size={'small'}
total={total}
showTotal={(total) => (
<Space>
{t('total', { keyPrefix: 'common' })}
{total}
</Space>
)}
/>
</div>
</Flex>

View File

@ -29,6 +29,7 @@ const model: DvaModel<ChunkModelState> = {
chunkInfo: {},
documentInfo: {} as IKnowledgeFile,
pagination: {
total: 0,
current: 1,
pageSize: 10,
},
@ -68,6 +69,7 @@ const model: DvaModel<ChunkModelState> = {
pagination: {
current: 1,
pageSize: 10,
total: 0,
},
searchString: '',
available: undefined,