Commit d5a36a16 by Jin Mao Committed by GitHub

fix: fix vxeTable commit proxy (#6536)

* fix: 修正use-vxe-grid中的代理配置提交类型

* chore: change config
1 parent 07b64ad3
...@@ -300,7 +300,7 @@ async function init() { ...@@ -300,7 +300,7 @@ async function init() {
const enableProxyConfig = options.value.proxyConfig?.enabled; const enableProxyConfig = options.value.proxyConfig?.enabled;
if (enableProxyConfig && autoLoad) { if (enableProxyConfig && autoLoad) {
props.api.grid.commitProxy?.( props.api.grid.commitProxy?.(
'initial', 'query',
formOptions.value ? ((await formApi.getValues()) ?? {}) : {}, formOptions.value ? ((await formApi.getValues()) ?? {}) : {},
); );
// props.api.reload(formApi.form?.values ?? {}); // props.api.reload(formApi.form?.values ?? {});
......
...@@ -110,7 +110,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ ...@@ -110,7 +110,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
toolbarConfig: { toolbarConfig: {
custom: true, custom: true,
export: false, export: false,
refresh: { code: 'query' }, refresh: true,
zoom: true, zoom: true,
}, },
treeConfig: { treeConfig: {
......
...@@ -44,7 +44,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ ...@@ -44,7 +44,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
toolbarConfig: { toolbarConfig: {
custom: true, custom: true,
export: false, export: false,
refresh: { code: 'query' }, refresh: true,
zoom: true, zoom: true,
}, },
treeConfig: { treeConfig: {
......
...@@ -52,7 +52,7 @@ const [Grid, gridApi] = useVbenVxeGrid({ ...@@ -52,7 +52,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
toolbarConfig: { toolbarConfig: {
custom: true, custom: true,
export: false, export: false,
refresh: { code: 'query' }, refresh: true,
search: true, search: true,
zoom: true, zoom: true,
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!