mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
fix the bug that statistical analysis still shows the account balance in the desktop version when the account balance is set to hide
This commit is contained in:
@@ -143,9 +143,13 @@ const chartOptions = computed<object>(() => {
|
||||
let tooltip = `<div><span class="chart-pointer" style="background-color: ${params.color}"></span>`;
|
||||
|
||||
if (name) {
|
||||
tooltip += `<span>${name}</span><br/><span>${value} (${percent})</span>`;
|
||||
} else {
|
||||
tooltip += `<span>${name}</span><br/>`;
|
||||
}
|
||||
|
||||
if (props.showValue) {
|
||||
tooltip += `<span>${value} (${percent})</span>`;
|
||||
} else {
|
||||
tooltip += `<span>${percent}</span>`;
|
||||
}
|
||||
|
||||
tooltip += '</div>';
|
||||
|
||||
Reference in New Issue
Block a user