收支卡片左上角显示年份
This commit is contained in:
parent
ba71594057
commit
84dc8e3399
|
|
@ -271,9 +271,10 @@ export default {
|
||||||
// 格式化日期显示
|
// 格式化日期显示
|
||||||
formatDateForDisplay(dateString) {
|
formatDateForDisplay(dateString) {
|
||||||
const date = new Date(dateString)
|
const date = new Date(dateString)
|
||||||
|
const year = date.getFullYear()
|
||||||
const month = date.getMonth() + 1
|
const month = date.getMonth() + 1
|
||||||
const day = date.getDate()
|
const day = date.getDate()
|
||||||
return `${month}月${day}日`
|
return `${year}年${month}月${day}日`
|
||||||
},
|
},
|
||||||
|
|
||||||
// 更新总金额显示
|
// 更新总金额显示
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user