更换新接口
This commit is contained in:
@@ -43,11 +43,14 @@
|
||||
}).then(res => {
|
||||
let newsData = res.data.data
|
||||
console.log('新闻', newsData);
|
||||
for (const item of newsData) {
|
||||
item.pub_time_str = dateFormat(item.pub_time_str)
|
||||
if (newsData) {
|
||||
for (const item of newsData) {
|
||||
item.pub_time_str = dateFormat(item.pub_time_str)
|
||||
}
|
||||
// newsData = newsData.slice(0, 3)
|
||||
this.newsList = newsData
|
||||
}
|
||||
// newsData = newsData.slice(0, 3)
|
||||
this.newsList = newsData
|
||||
|
||||
}).finally(_ => {})
|
||||
},
|
||||
// 跳转到新闻详情页
|
||||
|
||||
Reference in New Issue
Block a user