Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: useVbenVxeGrid 中的 reload、query 方法传递参数 #4886

Closed
5 tasks done
XiaoLin1995 opened this issue Nov 13, 2024 · 0 comments · Fixed by #4888
Closed
5 tasks done

Bug: useVbenVxeGrid 中的 reload、query 方法传递参数 #4886

XiaoLin1995 opened this issue Nov 13, 2024 · 0 comments · Fixed by #4888

Comments

@XiaoLin1995
Copy link

Version

Vben Admin V5

Describe the bug?

const gridOptions: VxeGridProps<Recordable<any>> = {
  proxyConfig: {
    ajax: {
      query: async (_, formValues, ) => {
        console.log(formValues,);
      },
    },
  },
};

const [Grid, gridApi] = useVbenVxeGrid({
  gridOptions,
});

// 调用 reload、query 时,proxyConfig 中的 query 方法的参数中获取不到传递的参数
gridApi.reload({
  test: 666, 
});

Reproduction

企业微信截图_17314845071625

System Info

/

Relevant log output

No response

Validations

@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant