mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 06:29:25 +08:00
fix(client): missing sort parameter (#5034)
This commit is contained in:
parent
4faf0d6ce2
commit
c42a2040e2
@ -86,7 +86,11 @@ export const useTableBlockProps = () => {
|
|||||||
: globalSort || ctx.dragSortBy
|
: globalSort || ctx.dragSortBy
|
||||||
: ctx.dragSortBy;
|
: ctx.dragSortBy;
|
||||||
const currentPageSize = pageSize || fieldSchema.parent?.['x-decorator-props']?.['params']?.pageSize;
|
const currentPageSize = pageSize || fieldSchema.parent?.['x-decorator-props']?.['params']?.pageSize;
|
||||||
ctx.service.run({ ...params?.[0], page: current || 1, pageSize: currentPageSize, sort });
|
const args = { ...params?.[0], page: current || 1, pageSize: currentPageSize };
|
||||||
|
if (sort) {
|
||||||
|
args['sort'] = sort;
|
||||||
|
}
|
||||||
|
ctx.service.run(args);
|
||||||
},
|
},
|
||||||
[globalSort, params],
|
[globalSort, params],
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user