From 1d314b1b094797af85dad440ede867678bb90efa Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 28 Jun 2025 18:10:35 +0800 Subject: [PATCH] fix the bug that statistical analysis still shows the account balance in the desktop version when the account balance is set to hide --- src/components/desktop/PieChart.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/desktop/PieChart.vue b/src/components/desktop/PieChart.vue index 115805ea..c8dbda00 100644 --- a/src/components/desktop/PieChart.vue +++ b/src/components/desktop/PieChart.vue @@ -143,9 +143,13 @@ const chartOptions = computed(() => { let tooltip = `
`; if (name) { - tooltip += `${name}
${value} (${percent})`; - } else { + tooltip += `${name}
`; + } + + if (props.showValue) { tooltip += `${value} (${percent})`; + } else { + tooltip += `${percent}`; } tooltip += '
';