diff --git a/src/api/user/news.js b/src/api/user/news.js
index 634d1f3..5c8a527 100644
--- a/src/api/user/news.js
+++ b/src/api/user/news.js
@@ -32,10 +32,12 @@ export function queryEssay(category_id) {
return request.get(`/api/cms-essay/query?category_id=${category_id}`);
}
//添加新闻文章
+
// export function addEssay(params){
// const str = parseParams(params)
// return request.post(`/api/cms-essay/add${str}`)
// }
+
export function addEssay(params) {
return request.post(`/api/cms-essay/add`, params);
}
diff --git a/src/views/message/components/sendMessage.vue b/src/views/message/components/sendMessage.vue
index b81c36b..6ea0502 100644
--- a/src/views/message/components/sendMessage.vue
+++ b/src/views/message/components/sendMessage.vue
@@ -23,7 +23,7 @@
{{item.title}}
-
收件人:{{o.receiverName}}
+
收件人:{{receive.receiverName}}
阅读人数:{{item.readUserNum}}
发送时间:{{item.sendTime}}
diff --git a/src/views/message/index.vue b/src/views/message/index.vue
index 35bb051..45334ba 100644
--- a/src/views/message/index.vue
+++ b/src/views/message/index.vue
@@ -160,7 +160,7 @@ const deleteMessage = async (id: any) => {
}
//一键已读
const readMessage = async (id:any) =>{
- console.log(id,userStore.data.id,'dddddd')
+ // console.log(id,userStore.data.id,'dddddd')
await readMessagesBatch({
messageIds:id,
userId:userStore.data.id
diff --git a/src/views/news/components/newsContentManage.vue b/src/views/news/components/newsContentManage.vue
index 012a7c6..ccc836b 100644
--- a/src/views/news/components/newsContentManage.vue
+++ b/src/views/news/components/newsContentManage.vue
@@ -47,7 +47,7 @@
@@ -60,7 +60,7 @@
@@ -75,9 +75,9 @@
-
-
-
+
+
+
@@ -88,7 +88,8 @@
-
+
+
@@ -166,7 +167,7 @@
-
+
@@ -181,9 +182,9 @@
-
-
-
+
+
+
@@ -256,7 +257,7 @@ const addNewsButton = (item)=>{
nowCategoryName.value = item.categoryName
}
const nowTimeNewsData = ref({})
-
+console.log(userStore.data,'当前用户数据')
//新闻详细信息获取
const newViews = (listObject)=> {
nowTimeNewsData.value = { ...listObject }
@@ -380,6 +381,7 @@ const newsForm = ref({
title:'',
updateTime:'',
userId:userStore.data.id,
+ nickName:userStore.data.nickName
})
//新闻文章添加
const addNewsContentConfirm = async (id)=>{
@@ -408,7 +410,7 @@ const aboutContent = async (essay_id)=>{
aboutContentDrawer.value = true
const responseEssay = await queryEssayById('1')
aboutEssay.value = responseEssay.data
- console.log(aboutEssay.value,'关于我们文章')
+ // console.log(aboutEssay.value,'关于我们文章')
}
//关于我们修改提交
const editConfirm =async ()=>{
diff --git a/src/views/news/index.vue b/src/views/news/index.vue
index 69f2086..750a3c5 100644
--- a/src/views/news/index.vue
+++ b/src/views/news/index.vue
@@ -15,7 +15,7 @@
- -
+
-
{{listObject.title}}
@@ -41,7 +41,7 @@
发布人:{{ nowTimeNewsData.userId }}
-
阅读数量:{{ nowTimeNewsData.readingNumber }}
+
发布日期:{{ nowTimeNewsData.publishTime }}
更新时间:{{nowTimeNewsData.updateTime}}
@@ -74,7 +74,6 @@ const column =ref([])
const CategoryList = async () => {
const res = await queryCategory()
column.value = res.data
- console.log('栏目数组长度:',column.value.length)
// 初始化时加载第一个栏目的第一条新闻
if (column.value.length > 0) {
await EssayList(column.value[0].id);
@@ -88,7 +87,7 @@ onMounted(() => {
})
const essay = ref([])
const nowTimeNewsData = ref({})
-
+console.log(nowTimeNewsData,'dsdsd')
//新闻文章查询
const EssayList = async (id)=>{
const response = await queryEssay(id)