首页图标数据显示两位数

This commit is contained in:
2023-09-21 10:20:34 +08:00
parent 716da59529
commit b0fea79781
2 changed files with 3 additions and 3 deletions

View File

@@ -130,8 +130,8 @@ async function getChartDataMethod() {
// 收益
const res1 = await getChartData(4, props.userId)
const res2 = await getChartData(2, props.userId)
yearData = res1.map(item => item.price)
sevenData = res2.map(item => item.price)
yearData = res1.map(item => item.price.toFixed(2))
sevenData = res2.map(item => item.price.toFixed(2))
sevenDataTime = res2.map(item => dayjs(item.times).format('MM/DD'))
} else {
// 流水