dengjie commit : 代码完善
This commit is contained in:
@@ -37,10 +37,13 @@
|
||||
getNewsDetail() {
|
||||
this.$apiServe.getNewsDetail(this.id).then(res => {
|
||||
// console.log('新闻详情页', res.data.data)
|
||||
let detail = res.data.data
|
||||
detail.pub_time = dateFormatXwDetail(detail.pub_time)
|
||||
this.detailList = res.data.data
|
||||
|
||||
if (res.data.data) {
|
||||
let detail = res.data.data
|
||||
detail.pub_time = dateFormatXwDetail(detail.pub_time)
|
||||
this.detailList = res.data.data
|
||||
} else {
|
||||
this.$toast.warn('没有更多详情了')
|
||||
}
|
||||
}).finally(_ => {})
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user