diff --git a/src/views/news.vue b/src/views/news.vue index 2ced0d7..cda82f9 100644 --- a/src/views/news.vue +++ b/src/views/news.vue @@ -108,6 +108,10 @@ export default{ getnews({'page':this.page}).then((res)=>{ // console.log(res) for(let i=0;i]+>/g, '').trim(); + + res.data.content[i].day=res.data.content[i].releaseTime.slice(-2) + res.data.content[i].year=res.data.content[i].releaseTime.slice(0,7) this.rest.push(res.data.content[i]) }