diff --git a/pages/cashFlow/cashFlow.vue b/pages/cashFlow/cashFlow.vue index 2d18651..ae73d8a 100644 --- a/pages/cashFlow/cashFlow.vue +++ b/pages/cashFlow/cashFlow.vue @@ -271,9 +271,10 @@ export default { // 格式化日期显示 formatDateForDisplay(dateString) { const date = new Date(dateString) + const year = date.getFullYear() const month = date.getMonth() + 1 const day = date.getDate() - return `${month}月${day}日` + return `${year}年${month}月${day}日` }, // 更新总金额显示