We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 490ba22 commit b7b57feCopy full SHA for b7b57fe
pages/detail/_id.vue
@@ -99,7 +99,9 @@ export default {
99
return result
100
},
101
time() {
102
- return dayjs(this.info.articleUpdateTime).format('YYYY-MM-DD HH:mm:ss')
+ return this.info.articleUpdateTime
103
+ ? dayjs(this.info.articleUpdateTime).format('YYYY-MM-DD HH:mm:ss')
104
+ : dayjs(this.info.articleCreateTime).format('YYYY-MM-DD HH:mm:ss')
105
106
handleDetail() {
107
let res = this.info.articleContentHtml
0 commit comments