原文参考:https://blog.csdn.net/xiaxiaoxian/article/details/79304004
element-admin设置时间
代码路径:vue-element-admin/src/views/example/components/ArticleDetail.vue
displayTime: { // set and get is useful when the data // returned by the back end api is different from the front end // back end return => "2013-06-25 06:59:25" // front end need timestamp => 1372114765000 get() { return (+new Date(this.postForm.display_time)) }, set(val) { this.postForm.display_time = new Date(val) } }