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) {
|
async function fetch(params, keepPagination = false) {
|
||||||
useArrayData(props.dataKey, params);
|
useArrayData(props.dataKey, params);
|
||||||
const { limit, skip } = arrayData.store;
|
|
||||||
|
|
||||||
if (!keepPagination) await arrayData.fetch({ append: false });
|
if (!keepPagination) await arrayData.fetch({ append: false });
|
||||||
else {
|
else {
|
||||||
|
const { limit, skip } = store;
|
||||||
store.limit = limit + skip;
|
store.limit = limit + skip;
|
||||||
store.skip = 0;
|
store.skip = 0;
|
||||||
await arrayData.fetch({ append: false });
|
await arrayData.fetch({ append: false });
|
||||||
|
|
Loading…
Reference in New Issue