code refactor

This commit is contained in:
MaysWind
2025-05-11 15:16:49 +08:00
parent 9c695ee46d
commit 62ad1749e8
+2 -2
View File
@@ -1358,9 +1358,9 @@ function changeCustomMonthDateFilter(yearMonth: string): void {
}
function shiftDateRange(startTime: number, endTime: number, scale: number): void {
if (pageType.value === TransactionListPageType.List.type && recentDateRangeIndex.value === 0) { // first item is "All"
if (recentMonthDateRanges.value[recentDateRangeIndex.value].dateType === DateRange.All.type) {
return;
} // transaction calendar mode not display "All" item
}
let newDateRange: TimeRangeAndDateType | null = null;