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; + } } });