首页图标数据显示两位数
This commit is contained in:
@@ -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 {
|
||||
// 流水
|
||||
|
||||
Reference in New Issue
Block a user