WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit b916217

Browse files
committed
fix the mobile transaction list page displayed incorrectly when loading more transactions
1 parent 6c4b705 commit b916217

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)