diff --git a/src/api/user/news.js b/src/api/user/news.js
index 400cd2e..634d1f3 100644
--- a/src/api/user/news.js
+++ b/src/api/user/news.js
@@ -32,9 +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){
+// const str = parseParams(params)
+// return request.post(`/api/cms-essay/add${str}`)
+// }
+export function addEssay(params) {
+ return request.post(`/api/cms-essay/add`, params);
}
//删除新闻
export function deleteEssay(ids) {
@@ -43,4 +46,8 @@ export function deleteEssay(ids) {
//修改新闻
export function editEssay(params) {
return request.put(`/api/cms-essay/edit`, params);
+}
+//根据id查询关于我们文章
+export function queryEssayById(essay_id) {
+ return request.get(`/api/cms-essay/queryessaybyid?essay_id=${essay_id}`);
}
\ No newline at end of file
diff --git a/src/views/message/index.vue b/src/views/message/index.vue
index 64d1fae..acaf206 100644
--- a/src/views/message/index.vue
+++ b/src/views/message/index.vue
@@ -193,7 +193,10 @@ const sendContent = ()=>{
// 消息事件点击
const handleClick = (item)=> {
- // console.log(item)
+ //查看消息切换已读状态
+ if(!item.isRead){
+ readMessage(item.id)
+ }
//带查询参数
router.push({ path: '/messageContentList', query: item })
}
diff --git a/src/views/news/components/newsContentManage.vue b/src/views/news/components/newsContentManage.vue
index 6491380..6e3c29e 100644
--- a/src/views/news/components/newsContentManage.vue
+++ b/src/views/news/components/newsContentManage.vue
@@ -89,7 +89,7 @@