This commit is contained in:
dzj 2024-06-11 10:10:42 +08:00
parent ec10ebfe61
commit 63a42b8be0

View File

@ -54,7 +54,7 @@
<p style=" color: rgba(115, 115, 124, .6); font-size: 13px; <p style=" color: rgba(115, 115, 124, .6); font-size: 13px;
color: #95959d; color: #95959d;
line-height: 24px; line-height: 24px;
text-align: justify;">{{ newsitem.source }} text-align: justify;">{{ newsitem.content }}
</p> </p>
</div> </div>
<div style="overflow: hidden;"> <div style="overflow: hidden;">
@ -272,7 +272,10 @@ export default {
}) })
// //
getnews({ 'page': 0 }).then((res) => { getnews({ 'page': 0 }).then((res) => {
res.data.content[0].content= res.data.content[0].content.replace(/<[^>]+>/g, '').trim();
this.newsitem = res.data.content[0] this.newsitem = res.data.content[0]
console.log(this.newsitem)
}) })
// //
backgroundText().then((res) => { backgroundText().then((res) => {