fix: page loading

This commit is contained in:
xingyu4j
2022-11-07 15:10:48 +08:00
parent efb4cf0c66
commit 1a45526a9d
2 changed files with 3 additions and 1 deletions

View File

@ -61,9 +61,11 @@ export const useVxeGrid = (allSchemas, getPageApi) => {
props: { result: 'list', total: 'total' },
ajax: {
query: ({ page, form }) => {
gridOptions.loading = true
const queryParams = Object.assign({}, form)
queryParams.pageSize = page.pageSize
queryParams.pageNo = page.currentPage
gridOptions.loading = false
return new Promise(async (resolve) => {
resolve(await getPageApi(queryParams))
})