From e57aef070844af732a917c8784c1e8aaa2d72bbc Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Fri, 26 Dec 2025 10:50:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8useListPage=E7=9A=84=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=BC=82=E5=B8=B8=20#9209?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecgboot-vue3/src/hooks/system/useListPage.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jeecgboot-vue3/src/hooks/system/useListPage.ts b/jeecgboot-vue3/src/hooks/system/useListPage.ts index 85968558d..f9cfc995b 100644 --- a/jeecgboot-vue3/src/hooks/system/useListPage.ts +++ b/jeecgboot-vue3/src/hooks/system/useListPage.ts @@ -75,6 +75,10 @@ export function useListPage(options: ListPageOptions) { if (options?.tableProps?.useSearchForm !== false) { paramsForm = await getForm().validate(); console.log('paramsForm', paramsForm); + // 在这里把执行beforeFetch + if (options?.tableProps?.beforeFetch) { + paramsForm = await options?.tableProps?.beforeFetch(paramsForm); + } } } catch (e) { console.warn(e);