From 0dd0597c3bea77378a8dcd5a01533f63e4a68075 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Thu, 8 Jan 2026 00:01:36 +0800 Subject: [PATCH] code refactor --- .../desktop/insights/tabs/ExplorerChartTab.vue | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/views/desktop/insights/tabs/ExplorerChartTab.vue b/src/views/desktop/insights/tabs/ExplorerChartTab.vue index 1b350ac2..529270dd 100644 --- a/src/views/desktop/insights/tabs/ExplorerChartTab.vue +++ b/src/views/desktop/insights/tabs/ExplorerChartTab.vue @@ -12,8 +12,7 @@ :disabled="loading || disabled" :label="tt('Chart Type')" :items="allTransactionExplorerChartTypes" - :model-value="currentExplorer.chartType" - @update:model-value="currentExplorer.chartType = $event as TransactionExplorerChartTypeValue" + v-model="currentExplorer.chartType" /> @@ -150,11 +146,9 @@ import { import { type NameValue, type TypeAndDisplayName } from '@/core/base.ts'; import { Month, WeekDay } from '@/core/datetime.ts'; import { - TransactionExplorerChartTypeValue, TransactionExplorerChartType, TransactionExplorerDataDimensionType, TransactionExplorerDataDimension, - TransactionExplorerValueMetricType, TransactionExplorerValueMetric } from '@/core/explorer.ts';