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 665f18f62..bde99943d 100644 --- a/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue +++ b/packages/effects/plugins/src/vxe-table/use-vxe-grid.vue @@ -251,9 +251,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; } // 注入已读行功能(rowClassName、rowStyle、columns 拦截)