From e3a93970f4bdaa8b8ecc29beca368b4d43312997 Mon Sep 17 00:00:00 2001 From: LinaBell <15891557205@163.com> Date: Sat, 30 Nov 2024 10:57:23 +0800 Subject: [PATCH] fix: when VxeTable toolbarConfig.refresh is enabled, it will carry incorrect parameters (#4980) --- packages/effects/plugins/src/vxe-table/extends.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/effects/plugins/src/vxe-table/extends.ts b/packages/effects/plugins/src/vxe-table/extends.ts index 4cb36fd6..d20ecfa7 100644 --- a/packages/effects/plugins/src/vxe-table/extends.ts +++ b/packages/effects/plugins/src/vxe-table/extends.ts @@ -43,7 +43,11 @@ function extendProxyOption( const data = await configFn( params, { - ...customValues, + /** + * 开启toolbarConfig.refresh功能 + * 点击刷新按钮 这里的值为PointerEvent 会携带错误参数 + */ + ...(customValues instanceof PointerEvent ? {} : customValues), ...formValues, }, ...args,