From d519b80b6197c8196b9e3d9c9e50d07fa30f592b Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 24 Nov 2024 23:43:54 +0800 Subject: [PATCH] reset date aggregation type for trend analysis when switching to non-trend analysis --- src/views/desktop/statistics/TransactionPage.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/desktop/statistics/TransactionPage.vue b/src/views/desktop/statistics/TransactionPage.vue index dec4c1e9..9d2a23ef 100644 --- a/src/views/desktop/statistics/TransactionPage.vue +++ b/src/views/desktop/statistics/TransactionPage.vue @@ -784,6 +784,10 @@ export default { }); } + if (this.analysisType !== statisticsConstants.allAnalysisTypes.TrendAnalysis) { + this.trendDateAggregationType = statisticsConstants.allDateAggregationTypes.Month.type; + } + this.analysisType = analysisType; this.loading = true; this.statisticsStore.updateTransactionStatisticsInvalidState(true);