fix: log page 'Cannot read properties of undefined (reading 'length')'

This commit is contained in:
CalciumIon
2024-08-14 22:43:57 +08:00
parent 748e34fd10
commit 8cd8cc29bc
3 changed files with 16 additions and 6 deletions

View File

@@ -534,6 +534,7 @@ const LogsTable = () => {
const res = await API.get(url);
const { success, message, data } = res.data;
if (success) {
console.log(data);
const newPageData = data.items;
setActivePage(data.page);
setPageSize(data.page_size);