From a8d333685118cb0baa5bb37267f036b750b9a7d7 Mon Sep 17 00:00:00 2001 From: 10396 <1039655633@qq.com> Date: Mon, 8 Dec 2025 09:23:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(hooks):=20=E8=B0=83=E6=95=B4=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=88=86=E9=A1=B5=E5=A4=A7=E5=B0=8F=E4=B8=BA10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 useListData hook 中的默认分页大小从 20 改为 10 - 保持其他分页配置不变(当前页为1,总数为0) - 此更改影响所有使用该 hook 的列表数据加载逻辑 --- src/hooks/useListData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useListData.js b/src/hooks/useListData.js index c77769d..dfbeae6 100644 --- a/src/hooks/useListData.js +++ b/src/hooks/useListData.js @@ -108,7 +108,7 @@ export default function useListData(api, options = {}) { const defaultSearchForm = options.defaultSearchForm ?? {}; const clearSelection = options.clearSelection ?? true; const isStorageQueryCriteria = options.isStorageQueryCriteria ?? true; - const defaultPagination = { currentPage: 1, pageSize: 20, total: 0 }; + const defaultPagination = { currentPage: 1, pageSize: 10, total: 0 }; const list = ref([]); const queryCriteria = getQueryCriteria(); const pagination = ref(queryCriteria.pagination || defaultPagination);