Browse Source
fix: fix vxeTable commit proxy (#6536)
* fix: 修正use-vxe-grid中的代理配置提交类型
* chore: change config
pull/6540/head
Jin Mao
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
4 additions and
4 deletions
-
packages/effects/plugins/src/vxe-table/use-vxe-grid.vue
-
playground/src/views/system/dept/list.vue
-
playground/src/views/system/menu/list.vue
-
playground/src/views/system/role/list.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 ?? {}); |
|
|
|
|
|
|
|
@ -110,7 +110,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ |
|
|
|
toolbarConfig: { |
|
|
|
custom: true, |
|
|
|
export: false, |
|
|
|
refresh: { code: 'query' }, |
|
|
|
refresh: true, |
|
|
|
zoom: true, |
|
|
|
}, |
|
|
|
treeConfig: { |
|
|
|
|
|
|
|
@ -44,7 +44,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ |
|
|
|
toolbarConfig: { |
|
|
|
custom: true, |
|
|
|
export: false, |
|
|
|
refresh: { code: 'query' }, |
|
|
|
refresh: true, |
|
|
|
zoom: true, |
|
|
|
}, |
|
|
|
treeConfig: { |
|
|
|
|
|
|
|
@ -52,7 +52,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ |
|
|
|
toolbarConfig: { |
|
|
|
custom: true, |
|
|
|
export: false, |
|
|
|
refresh: { code: 'query' }, |
|
|
|
refresh: true, |
|
|
|
search: true, |
|
|
|
zoom: true, |
|
|
|
}, |
|
|
|
|