mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 05:05:54 +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 };
|
||||
},
|
||||
setSearchString(state, { payload }) {
|
||||
return { ...state, searchString: payload };
|
||||
return {
|
||||
...state,
|
||||
pagination: { ...state.pagination, current: 1 },
|
||||
searchString: payload,
|
||||
};
|
||||
},
|
||||
setPagination(state, { payload }) {
|
||||
return { ...state, pagination: { ...state.pagination, ...payload } };
|
||||
|
Loading…
x
Reference in New Issue
Block a user