perf: vxe

This commit is contained in:
xingyu4j
2022-11-12 16:46:24 +08:00
parent 725cc4e41b
commit ac47638249
6 changed files with 34 additions and 4 deletions

View File

@ -85,7 +85,7 @@ export const useVxeGrid = <T = any>(config?: UseVxeGridConfig<T>) => {
props: { result: 'list', total: 'total' },
ajax: {
query: ({ page, form }) => {
const queryParams = Object.assign({}, form)
const queryParams = Object.assign({}, JSON.parse(JSON.stringify(form)))
queryParams.pageSize = page.pageSize
queryParams.pageNo = page.currentPage
gridOptions.loading = false