refactor: refs #8207 improve logic
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
3a4c0e729a
commit
8b52629b0b
|
@ -132,10 +132,10 @@ const addFilter = async (filter, params) => {
|
|||
|
||||
async function fetch(params, keepPagination = false) {
|
||||
useArrayData(props.dataKey, params);
|
||||
const { limit, skip } = arrayData.store;
|
||||
|
||||
if (!keepPagination) await arrayData.fetch({ append: false });
|
||||
else {
|
||||
const { limit, skip } = store;
|
||||
store.limit = limit + skip;
|
||||
store.skip = 0;
|
||||
await arrayData.fetch({ append: false });
|
||||
|
|
Loading…
Reference in New Issue