From 8227f7e004426a6166b2c0513518ff0000e27c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=93=E6=B9=98=E9=99=B5?= Date: Thu, 21 Apr 2022 19:34:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E8=AF=B7=E6=B1=82=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=BF=94=E5=9B=9E204=E9=80=A0=E6=88=90=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=BA=E7=A9=BA=E5=80=BC=E6=97=B6tableData?= =?UTF-8?q?=E4=B8=BAnull=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vben271/src/components/Table/src/hooks/useTableScroll.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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