From c8db448dfceff2b124c6cf3087ed8ba0c96af8a0 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 2 Jul 2024 01:20:38 +0800 Subject: [PATCH] fix the bug that the page cannot be loaded when clicking the date which is already chosen --- src/views/desktop/transactions/ListPage.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/views/desktop/transactions/ListPage.vue b/src/views/desktop/transactions/ListPage.vue index 71e63815..64e8ccd9 100644 --- a/src/views/desktop/transactions/ListPage.vue +++ b/src/views/desktop/transactions/ListPage.vue @@ -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, @@ -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,