mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
fix the mobile transaction list page displayed incorrectly when loading more transactions
This commit is contained in:
@@ -830,7 +830,8 @@ function setTransactionMonthListHeights(reset: boolean): Promise<unknown> {
|
|||||||
if (transactions.value && transactions.value.length) {
|
if (transactions.value && transactions.value.length) {
|
||||||
const heights: Record<string, number> = getElementActualHeights('.transaction-month-list');
|
const heights: Record<string, number> = 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 yearDashMonth = transactionMonthList.yearDashMonth;
|
||||||
const domId = getTransactionMonthListDomId(yearDashMonth);
|
const domId = getTransactionMonthListDomId(yearDashMonth);
|
||||||
const height = heights[domId];
|
const height = heights[domId];
|
||||||
@@ -848,7 +849,8 @@ function setTransactionInvisibleYearMonthList(): void {
|
|||||||
return;
|
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 yearDashMonth = transactionMonthList.yearDashMonth;
|
||||||
|
|
||||||
const titleDomId = getTransactionMonthTitleDomId(yearDashMonth);
|
const titleDomId = getTransactionMonthTitleDomId(yearDashMonth);
|
||||||
|
|||||||
Reference in New Issue
Block a user