From 51e50d8203f0893f40465a61f38343150e925ba5 Mon Sep 17 00:00:00 2001 From: Hermes CI Fix Date: Sun, 19 Jul 2026 16:59:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=86=E7=B1=BB=E6=A0=91=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=AD=E6=96=87=E6=A0=87=E7=AD=BE(=E9=80=9A?= =?UTF-8?q?=E8=BF=87CAT=5FMAP=E6=98=A0=E5=B0=84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/KPIList.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/KPIList.vue b/frontend/src/views/KPIList.vue index 932927b7..c65af241 100644 --- a/frontend/src/views/KPIList.vue +++ b/frontend/src/views/KPIList.vue @@ -447,7 +447,10 @@ async function loadCategories() { try { const r: any = await kpiApi.listCategories() categoryTree.value = [ - { key: '_all', label: '全部', count: r.total, children: r.tree || [] } + { key: '_all', label: '全部', count: r.total, children: (r.tree || []).map((dim: any) => ({ + ...dim, + children: (dim.children || []).map((cat: any) => ({ ...cat, label: CAT_MAP[cat.key] || cat.label })) + })) } ] defaultExpanded.value = ['_all', ...(r.tree || []).map((n: any) => n.key)] } catch (e) {