diff --git a/vben271/src/components/Table/src/hooks/useTableScroll.ts b/vben271/src/components/Table/src/hooks/useTableScroll.ts index e4931d04..cce39341 100644 --- a/vben271/src/components/Table/src/hooks/useTableScroll.ts +++ b/vben271/src/components/Table/src/hooks/useTableScroll.ts @@ -88,7 +88,7 @@ export function useTableScroll( bodyEl!.style.height = 'unset'; - if (!unref(getCanResize) || tableData.length === 0) return; + if (!unref(getCanResize) || !tableData || tableData.length === 0) return; await nextTick(); //Add a delay to get the correct bottomIncludeBody paginationHeight footerHeight headerHeight