fix: 解决网站打开页面错误的问题 (#2350)

pull/2352/head
zhengkunwang 1 year ago committed by GitHub
parent 6876f28505
commit 9c417e113a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}
}
});
</script>

Loading…
Cancel
Save