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

This commit is contained in:
SunCheng
2026-01-17 12:33:16 +08:00
parent c74ce24727
commit 3cbc868e9b
2 changed files with 26 additions and 25 deletions

View File

@@ -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