From 9c417e113a45803824f2bf2f0aa98cfff32d7233 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 19 Sep 2023 17:22:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E6=89=93=E5=BC=80=E9=A1=B5=E9=9D=A2=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#2350)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/complex-table/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/complex-table/index.vue b/frontend/src/components/complex-table/index.vue index 1d2a20f5c..8c8c45869 100644 --- a/frontend/src/components/complex-table/index.vue +++ b/frontend/src/components/complex-table/index.vue @@ -81,9 +81,11 @@ defineExpose({ }); onMounted(() => { - let itemSize = Number(localStorage.getItem(props.paginationConfig.cacheSizeKey)); - if (itemSize) { - props.paginationConfig.pageSize = itemSize; + if (props.paginationConfig?.cacheSizeKey) { + let itemSize = Number(localStorage.getItem(props.paginationConfig.cacheSizeKey)); + if (itemSize) { + props.paginationConfig.pageSize = itemSize; + } } });