From d5a36a167de83cc8fbe488b686df4b0425cd7338 Mon Sep 17 00:00:00 2001 From: Jin Mao <50581550+jinmao88@users.noreply.github.com> Date: Sat, 19 Jul 2025 16:07:15 +0800 Subject: [PATCH] fix: fix vxeTable commit proxy (#6536) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修正use-vxe-grid中的代理配置提交类型 * chore: change config --- packages/effects/plugins/src/vxe-table/use-vxe-grid.vue | 2 +- playground/src/views/system/dept/list.vue | 2 +- playground/src/views/system/menu/list.vue | 2 +- playground/src/views/system/role/list.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue b/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue index 9844c409d..7b002a206 100644 --- a/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue +++ b/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue @@ -300,7 +300,7 @@ async function init() { const enableProxyConfig = options.value.proxyConfig?.enabled; if (enableProxyConfig && autoLoad) { props.api.grid.commitProxy?.( - 'initial', + 'query', formOptions.value ? ((await formApi.getValues()) ?? {}) : {}, ); // props.api.reload(formApi.form?.values ?? {}); diff --git a/playground/src/views/system/dept/list.vue b/playground/src/views/system/dept/list.vue index 1b4154d45..13d45a6ee 100644 --- a/playground/src/views/system/dept/list.vue +++ b/playground/src/views/system/dept/list.vue @@ -110,7 +110,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ toolbarConfig: { custom: true, export: false, - refresh: { code: 'query' }, + refresh: true, zoom: true, }, treeConfig: { diff --git a/playground/src/views/system/menu/list.vue b/playground/src/views/system/menu/list.vue index 9ab456448..759dccf6b 100644 --- a/playground/src/views/system/menu/list.vue +++ b/playground/src/views/system/menu/list.vue @@ -44,7 +44,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ toolbarConfig: { custom: true, export: false, - refresh: { code: 'query' }, + refresh: true, zoom: true, }, treeConfig: { diff --git a/playground/src/views/system/role/list.vue b/playground/src/views/system/role/list.vue index b5e383a62..f89228f67 100644 --- a/playground/src/views/system/role/list.vue +++ b/playground/src/views/system/role/list.vue @@ -52,7 +52,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ toolbarConfig: { custom: true, export: false, - refresh: { code: 'query' }, + refresh: true, search: true, zoom: true, },