fix
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled

This commit is contained in:
2026-01-04 17:19:01 +08:00
parent d722860e71
commit d3c32c23fd

View File

@@ -53,27 +53,17 @@ const [Grid, gridApi] = useVbenVxeGrid({
schema: useWithdrawalFormSchema(),
submitOnChange: true,
},
gridOptions: {
gridOptions: {
columns: useWithdrawalColumns(),
proxyConfig: {
ajax: {
query: async ({
page,
form,
}: {
page: QueryParams;
form: Record<string, any>;
}) => {
// 过滤掉 undefined 和 null 值
const filteredForm = Object.fromEntries(
Object.entries(form).filter(
([_, value]) => value !== undefined && value !== null && value !== '',
),
);
return await getAgentWithdrawalList({
...queryParams.value,
...filteredForm,
page: page.currentPage,
pageSize: page.pageSize,
});