Commit a0f3006e authored by nature's avatar nature

组建优化

parent bee10896
......@@ -39,4 +39,8 @@ export default (Vue) => {
const ss = date.getSeconds()
return `${YYYY}-${format(MM)}-${format(DD)} ${format(hh)}:${format(mm)}:${format(ss)}`
})
Vue.filter('date', (dateTime, format) => {
const date = new Date(dateTime)
return date.format(format)
})
}
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