Skip to content

Commit e9503d6

Browse files
committed
fix the mobile transaction list page displayed incorrectly when loading more transactions
1 parent d8736ee commit e9503d6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/views/mobile/transactions/ListPage.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,8 @@ function setTransactionMonthListHeights(reset: boolean): Promise<unknown> {
830830
if (transactions.value && transactions.value.length) {
831831
const heights: Record<string, number> = getElementActualHeights('.transaction-month-list');
832832
833-
for (const transactionMonthList of transactions.value) {
833+
for (let i = 0; i < transactions.value.length - 1; i++) {
834+
const transactionMonthList = transactions.value[i] as TransactionMonthList;
834835
const yearDashMonth = transactionMonthList.yearDashMonth;
835836
const domId = getTransactionMonthListDomId(yearDashMonth);
836837
const height = heights[domId];
@@ -848,7 +849,8 @@ function setTransactionInvisibleYearMonthList(): void {
848849
return;
849850
}
850851
851-
for (const transactionMonthList of transactions.value) {
852+
for (let i = 0; i < transactions.value.length - 1; i++) {
853+
const transactionMonthList = transactions.value[i] as TransactionMonthList;
852854
const yearDashMonth = transactionMonthList.yearDashMonth;
853855
854856
const titleDomId = getTransactionMonthTitleDomId(yearDashMonth);

0 commit comments

Comments
 (0)