From 544bc81749c6a9eee6cc76901b2d71ae634f5ed6 Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Thu, 24 Nov 2022 20:13:23 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Portal/interactBar.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Portal/interactBar.vue b/src/components/Portal/interactBar.vue index 21f70716..a8067405 100644 --- a/src/components/Portal/interactBar.vue +++ b/src/components/Portal/interactBar.vue @@ -52,10 +52,10 @@ -
+ {{ formatNum(data.views)}} -
+ + {{ item.title }}
- -
{{item.tip}}-{{ item.content }}
-
{{item.tip}}
-
+ +
{{item.tip}}-{{ item.content }}
+
{{item.tip}}
+
删除
@@ -314,18 +315,28 @@ export default { // 跳转详情事件11 returnRouter(item) { + apiMessage.updateIsRead([item.id]).then(res => { + if (res.status == 200) { + this.$store.dispatch('refrashMsg'); + // this.queryMessage(true) + item.isRead = true; + } + }); if(item.pageUrl && item.pageUrl.length>10){ - return item.pageUrl; + location.href = item.pageUrl; }else{ if (item.refType == 2) { - return this.webBaseUrl + '/article/detail?id=' + item.refId; + // return this.webBaseUrl + '/article/detail?id=' + item.refId; + this.$router.push('/article/detail?id='+ item.refId); } else if (item.refType == 4||item.refType == 5) { - return this.webBaseUrl + '/qa/answer?id=' + item.refId; + // return this.webBaseUrl + '/qa/answer?id=' + item.refId; + this.$router.push('/qa/answer?id='+ item.refId); } else { // if (item.conType == 10) { // return this.webBaseUrl + '/course/micro?id=' + item.refId; // } else if (item.conType == 20) { - return this.webBaseUrl + '/course/detail?id=' + item.refId; + // return this.webBaseUrl + '/course/detail?id=' + item.refId; + this.$router.push('/course/detail?id='+ item.refId); // } } }