From 30356a24e6e508198e6b3f30fa12dec99d376960 Mon Sep 17 00:00:00 2001 From: xueyitt <1455668754@qq.com> Date: Mon, 11 May 2026 10:09:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3vxtable=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8formConfig=E6=97=B6=EF=BC=8C=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E5=8F=98=E6=9B=B4data=E5=A4=B1=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正vxtable不存在formConfig时,直接变更data失效问题 --- packages/effects/plugins/src/vxe-table/use-vxe-grid.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 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 78cab6a58..9be8f334e 100644 --- a/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue +++ b/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue @@ -230,9 +230,9 @@ const options = computed(() => { } if (mergedOptions.formConfig) { mergedOptions.formConfig.enabled = false; - if (tableData.value && tableData.value.length > 0) { - mergedOptions.data = tableData.value; - } + } + if (tableData.value && tableData.value.length > 0) { + mergedOptions.data = tableData.value; } return mergedOptions; });