From e9503d6ae2292ec924f293ed24f43dee3832674c Mon Sep 17 00:00:00 2001 From: MaysWind Date: Thu, 2 Oct 2025 21:37:00 +0800 Subject: [PATCH] fix the mobile transaction list page displayed incorrectly when loading more transactions --- src/views/mobile/transactions/ListPage.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/mobile/transactions/ListPage.vue b/src/views/mobile/transactions/ListPage.vue index e2ea13d0..7748a141 100644 --- a/src/views/mobile/transactions/ListPage.vue +++ b/src/views/mobile/transactions/ListPage.vue @@ -830,7 +830,8 @@ function setTransactionMonthListHeights(reset: boolean): Promise { if (transactions.value && transactions.value.length) { const heights: Record = getElementActualHeights('.transaction-month-list'); - for (const transactionMonthList of transactions.value) { + for (let i = 0; i < transactions.value.length - 1; i++) { + const transactionMonthList = transactions.value[i] as TransactionMonthList; const yearDashMonth = transactionMonthList.yearDashMonth; const domId = getTransactionMonthListDomId(yearDashMonth); const height = heights[domId]; @@ -848,7 +849,8 @@ function setTransactionInvisibleYearMonthList(): void { return; } - for (const transactionMonthList of transactions.value) { + for (let i = 0; i < transactions.value.length - 1; i++) { + const transactionMonthList = transactions.value[i] as TransactionMonthList; const yearDashMonth = transactionMonthList.yearDashMonth; const titleDomId = getTransactionMonthTitleDomId(yearDashMonth);