fix(ui): 限制分页游标历史长度
This commit is contained in:
@@ -205,7 +205,7 @@ function BatteriesPage() {
|
|||||||
search: (prev) => ({
|
search: (prev) => ({
|
||||||
...prev,
|
...prev,
|
||||||
cursor: nextCursor,
|
cursor: nextCursor,
|
||||||
cursors: [...(prev.cursors || []), prev.cursor || firstPageCursor],
|
cursors: [...(prev.cursors || []), prev.cursor || firstPageCursor].slice(-100),
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user