fix: sort parameter is missing (#849)

* fix: 审计日志翻页sort丢失

* fix: 审计日志翻页sort丢失

* fix: 审计日志翻页sort丢失

Co-authored-by: 唐小爱 <tangxiaoai@192.168.0.103>
(cherry picked from commit 88190100cbd64bccaa548de069a727272c04e8f1)
This commit is contained in:
katherinehhh 2022-10-10 15:46:29 +08:00 committed by chenos
parent f490fd358a
commit 72372f34e9

View File

@ -145,8 +145,7 @@ export const useTableBlockProps = () => {
? sorter.order === `ascend`
? [sorter.field]
: [`-${sorter.field}`]
: globalSort || null;
: globalSort || ctx.service.params?.[0]?.sort;
ctx.service.run({ ...ctx.service.params?.[0], page: current, pageSize, sort });
},
};