From 8c7dbd24adc9e49c0df4428937917241c737ac37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=9A?= Date: Mon, 12 Jan 2026 14:46:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E7=AE=80=E5=8C=96=E5=88=86=E7=B1=BB=E8=A7=86=E5=9B=BE=E8=AE=A1?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/src/views/StatisticsView.vue | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/Web/src/views/StatisticsView.vue b/Web/src/views/StatisticsView.vue index e63a020..89c76d1 100644 --- a/Web/src/views/StatisticsView.vue +++ b/Web/src/views/StatisticsView.vue @@ -102,9 +102,9 @@ -
+
{ - const list = [...expenseCategories.value] - const unclassifiedIndex = list.findIndex(c => !c.classify) - if (unclassifiedIndex !== -1) { - const [unclassified] = list.splice(unclassifiedIndex, 1) - list.unshift(unclassified) - } +const expenseCategoriesSimpView = computed(() => { + const list = expenseCategoriesView.value if (showAllExpense.value || list.length <= 7) return list @@ -409,6 +404,17 @@ const expenseCategoriesView = computed(() => { return top }) +const expenseCategoriesView = computed(() => { + const list = [...expenseCategories.value] + const unclassifiedIndex = list.findIndex(c => !c.classify) + if (unclassifiedIndex !== -1) { + const [unclassified] = list.splice(unclassifiedIndex, 1) + list.unshift(unclassified) + } + + return list +}) + const incomeCategoriesView = computed(() => { const list = [...incomeCategories.value] const unclassifiedIndex = list.findIndex(c => !c.classify)