Commit 6b83311f authored by chenqikuai's avatar chenqikuai

fix: 修复时间展示filter

parent 283e3210
...@@ -10,7 +10,7 @@ export default { ...@@ -10,7 +10,7 @@ export default {
formatDate(timeStamp: number) { formatDate(timeStamp: number) {
const commonLen = new Date().getTime().toString().length const commonLen = new Date().getTime().toString().length
if (timeStamp.toString().length === commonLen) { if (timeStamp.toString().length === commonLen) {
return moment(timeStamp).format('YYYY-MM-DD hh:mm') // September 14th 2021, 3:22:23 pm return moment(timeStamp).format('YYYY-MM-DD HH:mm') // September 14th 2021, 3:22:23 pm
} else { } else {
return '' return ''
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment