From 4dd79b07d9bfc746cfca8262aaa911c685c6e3b9 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 9 Jun 2024 02:35:59 +0800 Subject: [PATCH] fix the bug that cannot set the date range automatically when navigate to transaction list page by clicking category in statistics page in mobile version --- src/stores/statistics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/statistics.js b/src/stores/statistics.js index 7c87c326..1d2c7d34 100644 --- a/src/stores/statistics.js +++ b/src/stores/statistics.js @@ -744,7 +744,7 @@ export const useStatisticsStore = defineStore('statistics', { && this.transactionStatisticsFilter.chartDataType !== statisticsConstants.allChartDataTypes.AccountTotalLiabilities.type) { querys.push('dateType=' + this.transactionStatisticsFilter.categoricalChartDateType); - if (this.transactionStatisticsFilter.dateType === datetimeConstants.allDateRanges.Custom.type) { + if (this.transactionStatisticsFilter.categoricalChartDateType === datetimeConstants.allDateRanges.Custom.type) { querys.push('minTime=' + this.transactionStatisticsFilter.categoricalChartStartTime); querys.push('maxTime=' + this.transactionStatisticsFilter.categoricalChartEndTime); }