From 31eae82ea55dc06dd7e1c78daab948dbdb19f209 Mon Sep 17 00:00:00 2001 From: fwb Date: Mon, 9 Sep 2024 18:19:02 +0800 Subject: [PATCH] 'gengxin' --- .../news/components/newsContentManage.vue | 25 ++++++++++++------- src/views/news/index.vue | 12 ++++----- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/src/views/news/components/newsContentManage.vue b/src/views/news/components/newsContentManage.vue index ccc836b..131863e 100644 --- a/src/views/news/components/newsContentManage.vue +++ b/src/views/news/components/newsContentManage.vue @@ -60,7 +60,7 @@ @@ -75,11 +75,14 @@ - - - + + + - + + + + @@ -182,11 +185,15 @@ - - - + + + - + + + + + diff --git a/src/views/news/index.vue b/src/views/news/index.vue index 750a3c5..576adfd 100644 --- a/src/views/news/index.vue +++ b/src/views/news/index.vue @@ -41,7 +41,7 @@

发布人:{{ nowTimeNewsData.userId }}

- +

阅读数量:{{ nowTimeNewsData.readingNumber }}

发布日期:{{ nowTimeNewsData.publishTime }}

更新时间:{{nowTimeNewsData.updateTime}}

@@ -87,7 +87,11 @@ onMounted(() => { }) const essay = ref([]) const nowTimeNewsData = ref({}) -console.log(nowTimeNewsData,'dsdsd') +// console.log(nowTimeNewsData,'dsdsd') +//新闻详细信息获取 +const newViews = (listObject)=> { + nowTimeNewsData.value = { ...listObject } +} //新闻文章查询 const EssayList = async (id)=>{ const response = await queryEssay(id) @@ -96,10 +100,6 @@ const EssayList = async (id)=>{ newViews(essay.value[0]); // 显示第一条新闻 } } -//新闻详细信息获取 -const newViews = (listObject)=> { - nowTimeNewsData.value = { ...listObject } -}