diff --git a/src/views/portal/user/Message.vue b/src/views/portal/user/Message.vue
index 9b246d20..e281263f 100644
--- a/src/views/portal/user/Message.vue
+++ b/src/views/portal/user/Message.vue
@@ -67,14 +67,15 @@
未读
已读
- {{ item.title }}
+
+ {{ 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);
// }
}
}