使用useListPage的导出异常 #9209

This commit is contained in:
JEECG
2025-12-26 10:50:11 +08:00
parent 42087c0bf8
commit e57aef0708

View File

@@ -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);