mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 13:38:59 +08:00
### 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:
parent
4d10dbcf95
commit
478cd006d6
@ -203,6 +203,12 @@ const Chunk = () => {
|
|||||||
current={pagination.current}
|
current={pagination.current}
|
||||||
size={'small'}
|
size={'small'}
|
||||||
total={total}
|
total={total}
|
||||||
|
showTotal={(total) => (
|
||||||
|
<Space>
|
||||||
|
{t('total', { keyPrefix: 'common' })}
|
||||||
|
{total}
|
||||||
|
</Space>
|
||||||
|
)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
@ -29,6 +29,7 @@ const model: DvaModel<ChunkModelState> = {
|
|||||||
chunkInfo: {},
|
chunkInfo: {},
|
||||||
documentInfo: {} as IKnowledgeFile,
|
documentInfo: {} as IKnowledgeFile,
|
||||||
pagination: {
|
pagination: {
|
||||||
|
total: 0,
|
||||||
current: 1,
|
current: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
},
|
},
|
||||||
@ -68,6 +69,7 @@ const model: DvaModel<ChunkModelState> = {
|
|||||||
pagination: {
|
pagination: {
|
||||||
current: 1,
|
current: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
total: 0,
|
||||||
},
|
},
|
||||||
searchString: '',
|
searchString: '',
|
||||||
available: undefined,
|
available: undefined,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user