code refactor

This commit is contained in:
MaysWind
2025-01-27 15:37:55 +08:00
parent 8c0a9062a2
commit fd3457af84
7 changed files with 15 additions and 23 deletions
+2 -2
View File
@@ -238,8 +238,8 @@ const yAxisWidth = computed<number>(() => {
}
}
const maxValueText = formatAmountWithCurrency(maxValue, props.defaultCurrency) || '';
const minValueText = formatAmountWithCurrency(minValue, props.defaultCurrency) || '';
const maxValueText = formatAmountWithCurrency(maxValue, props.defaultCurrency);
const minValueText = formatAmountWithCurrency(minValue, props.defaultCurrency);
const maxLengthText = maxValueText.length > minValueText.length ? maxValueText : minValueText;
const canvas = document.createElement('canvas');