bugfix: 边坡分页

This commit is contained in:
huangchenhao 2026-05-09 15:35:53 +08:00
parent 16d7c75c12
commit e614b5baef

View File

@ -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) => ({