mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 03:35:52 +08:00
### What problem does this PR solve? fix: Hundreds of chunks list can't choose page #1238 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
607de74ace
commit
975798c643
@ -53,7 +53,11 @@ const model: DvaModel<ChunkModelState> = {
|
|||||||
return { ...state, available: payload };
|
return { ...state, available: payload };
|
||||||
},
|
},
|
||||||
setSearchString(state, { payload }) {
|
setSearchString(state, { payload }) {
|
||||||
return { ...state, searchString: payload };
|
return {
|
||||||
|
...state,
|
||||||
|
pagination: { ...state.pagination, current: 1 },
|
||||||
|
searchString: payload,
|
||||||
|
};
|
||||||
},
|
},
|
||||||
setPagination(state, { payload }) {
|
setPagination(state, { payload }) {
|
||||||
return { ...state, pagination: { ...state.pagination, ...payload } };
|
return { ...state, pagination: { ...state.pagination, ...payload } };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user