bugfix: 边坡分页
This commit is contained in:
parent
16d7c75c12
commit
e614b5baef
@ -462,8 +462,8 @@ const getAffectedSites = async () => {
|
||||
pagination.total = allData.length || 0
|
||||
|
||||
// 客户端分页:计算当前页的数据范围
|
||||
const startIndex = (currentPage.value - 1) * pageSize.value
|
||||
const endIndex = startIndex + pageSize.value
|
||||
const startIndex = (pagination.current - 1) * pagination.pageSize
|
||||
const endIndex = startIndex + pagination.pageSize
|
||||
const currentPageData = allData.slice(startIndex, endIndex)
|
||||
|
||||
tableData.value = currentPageData.map((item, index) => ({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user