`
CommentSchema.path('createdAt').get(function(v) {
return moment(v).format('YYYY-MM-DD HH:mm:ss')
})
CommentSchema.path('updatedAt').get(function(v) {
return moment(v).format('YYYY-MM-DD HH:mm:ss')
})
`
只是想格式化时间,获取列表的时候一直都不行,获取单个的时候就执行了,getters已经设置了,还是无效