forked from FoundKeyGang/FoundKey
parent
4bfbe0dd96
commit
14c7d2bf53
1 changed files with 5 additions and 1 deletions
|
@ -129,7 +129,11 @@ const fetchMore = async (ahead?: boolean): Promise<void> => {
|
||||||
if (!ahead) {
|
if (!ahead) {
|
||||||
backed = true;
|
backed = true;
|
||||||
}
|
}
|
||||||
const params = props.pagination.params ? isRef(props.pagination.params) ? props.pagination.params : props.pagination.params : {};
|
const params = props.pagination.params
|
||||||
|
? isRef(props.pagination.params)
|
||||||
|
? props.pagination.params.value as Record<string, any>
|
||||||
|
: props.pagination.params
|
||||||
|
: {};
|
||||||
await os.api(props.pagination.endpoint, {
|
await os.api(props.pagination.endpoint, {
|
||||||
...params,
|
...params,
|
||||||
limit: SECOND_FETCH_LIMIT + 1,
|
limit: SECOND_FETCH_LIMIT + 1,
|
||||||
|
|
Loading…
Reference in a new issue