功能变化: 菜单管理懒加载

This commit is contained in:
猿小天
2023-02-08 10:46:55 +08:00
parent 8431e9a87e
commit 507f40ae3d
3 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ export default {
//请参考文档http://fast-crud.docmirror.cn/api/crud-options/request.html
transformQuery: ({ page, form, sort }: any) => {
//转换为你pageRequest所需要的请求参数结构
return { page, form, sort };
return { page: page.currentPage, limit: page.pageSize, ...form };
},
transformRes: ({ res }: any) => {
//将pageRequest的返回数据转换为fast-crud所需要的格式