From 60298a7b151d79645c5dc6ec0cd04de96fcf6a17 Mon Sep 17 00:00:00 2001 From: dzj <1140318653@qq.com> Date: Fri, 31 May 2024 11:58:28 +0800 Subject: [PATCH] init --- src/views/news.vue | 4 ++++ 1 file changed, 4 insertions(+) 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]) }