vbenjs / vue-vben-admin

A modern vue admin panel built with Vue3, Shadcn UI, Vite, TypeScript, and Monorepo. It's fast!
https://www.vben.pro
MIT License
25.4k stars 6.91k forks source link

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

Closed XiaoLin1995 closed 6 days ago

XiaoLin1995 commented 1 week ago

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