async getComment() {
const res = await this.$http.getComment(this.id, { limit: 100 })
res.data.message.sort((a, b) => {
return Date.parse(b.add_time) - Date.parse(a.add_time)
})
this.comment = res.data.message
console.log(this.comment)
},
sort 结合 Date.parse 排序