Skip to content

Commit

Permalink
fix the bug that the page cannot be loaded when clicking the date whi…
Browse files Browse the repository at this point in the history
…ch is already chosen
  • Loading branch information
mayswind committed Jul 1, 2024
1 parent 51edca6 commit c8db448
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/views/desktop/transactions/ListPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,10 @@ export default {
return;
}
if (this.query.dateType === recentDateRange.dateType && this.query.maxTime === recentDateRange.maxTime && this.query.minTime === recentDateRange.minTime) {
return;
}
this.transactionsStore.updateTransactionListFilter({
dateType: recentDateRange.dateType,
maxTime: recentDateRange.maxTime,
Expand All @@ -887,6 +891,11 @@ export default {
const dateType = getDateTypeByDateRange(minTime, maxTime, this.firstDayOfWeek, datetimeConstants.allDateRangeScenes.Normal);
if (this.query.dateType === dateType && this.query.maxTime === maxTime && this.query.minTime === minTime) {
this.showCustomDateRangeDialog = false;
return;
}
this.transactionsStore.updateTransactionListFilter({
dateType: dateType,
maxTime: maxTime,
Expand Down

0 comments on commit c8db448

Please sign in to comment.