fix bug
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 56s
Docker Build & Deploy / Deploy to Production (push) Successful in 13s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 3s
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 56s
Docker Build & Deploy / Deploy to Production (push) Successful in 13s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 3s
This commit is contained in:
@@ -96,9 +96,10 @@ const fetchDailyStatistics = async (year, month) => {
|
||||
// 将数组转换为对象,key为日期
|
||||
const statsMap = {}
|
||||
response.data.forEach((item) => {
|
||||
console.warn(item)
|
||||
statsMap[item.date] = {
|
||||
count: item.count,
|
||||
amount: item.amount
|
||||
amount: (item.income - item.expense).toFixed(1)
|
||||
}
|
||||
})
|
||||
dailyStatistics.value = {
|
||||
@@ -262,7 +263,7 @@ const formatterCalendar = (day) => {
|
||||
|
||||
if (stats) {
|
||||
dayCopy.topInfo = `${stats.count}笔` // 展示消费笔数
|
||||
dayCopy.bottomInfo = `${(stats.amount || 0).toFixed(1)}元` // 展示消费金额
|
||||
dayCopy.bottomInfo = `${stats.amount}元` // 展示消费金额
|
||||
}
|
||||
|
||||
return dayCopy
|
||||
|
||||
Reference in New Issue
Block a user