From 63a42b8be03f7b072c0a9e08f954b16072f3d350 Mon Sep 17 00:00:00 2001 From: dzj <1140318653@qq.com> Date: Tue, 11 Jun 2024 10:10:42 +0800 Subject: [PATCH] init --- src/views/HomeView.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index de2a515..df94179 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -54,7 +54,7 @@

{{ newsitem.source }} + text-align: justify;">{{ newsitem.content }}

@@ -272,7 +272,10 @@ export default { }) //新闻展示 getnews({ 'page': 0 }).then((res) => { + res.data.content[0].content= res.data.content[0].content.replace(/<[^>]+>/g, '').trim(); this.newsitem = res.data.content[0] + + console.log(this.newsitem) }) //图文展示 backgroundText().then((res) => {