diff --git a/yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts b/yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts index 1366965bc..f2de019e0 100644 --- a/yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts +++ b/yudao-ui-admin-vue3/src/hooks/web/useVxeGrid.ts @@ -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)) }) diff --git a/yudao-ui-admin-vue3/src/views/system/menu/index.vue b/yudao-ui-admin-vue3/src/views/system/menu/index.vue index 01f45da5a..ab5276d10 100644 --- a/yudao-ui-admin-vue3/src/views/system/menu/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/menu/index.vue @@ -318,8 +318,8 @@ const queryParams = reactive({ status: null }) const getList = async () => { - statusOption.value = getIntDictOptions(DICT_TYPE.COMMON_STATUS) tableLoading.value = true + statusOption.value = getIntDictOptions(DICT_TYPE.COMMON_STATUS) const res = await MenuApi.getMenuListApi(queryParams) tableData.value = res tableLoading.value = false