1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-17 11:14:44 +08:00

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

This commit is contained in:
zhengkunwang 2023-09-19 17:22:17 +08:00 committed by GitHub
parent 6876f28505
commit 9c417e113a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,10 +81,12 @@ defineExpose({
}); });
onMounted(() => { onMounted(() => {
if (props.paginationConfig?.cacheSizeKey) {
let itemSize = Number(localStorage.getItem(props.paginationConfig.cacheSizeKey)); let itemSize = Number(localStorage.getItem(props.paginationConfig.cacheSizeKey));
if (itemSize) { if (itemSize) {
props.paginationConfig.pageSize = itemSize; props.paginationConfig.pageSize = itemSize;
} }
}
}); });
</script> </script>