diff --git a/components/archive/list.vue b/components/archive/list.vue index 18cb4b1..edd7652 100644 --- a/components/archive/list.vue +++ b/components/archive/list.vue @@ -23,7 +23,7 @@ - +
{{ article.articleAuthorName }} diff --git a/components/common/notification/list.vue b/components/common/notification/list.vue index d6278a8..71e8393 100644 --- a/components/common/notification/list.vue +++ b/components/common/notification/list.vue @@ -6,18 +6,7 @@ - {{ notification.createdTime }} - - - - - - - - - - - {{ notification.createdTime }} + {{ notification.createdTime }} @@ -26,14 +15,26 @@ - - - {{ notification.createdTime }} + + - - - 标记已读 - + + + + + {{ notification.createdTime }} + + + {{ notification.dataSummary }} + + + + + 标记已读 + + @@ -68,19 +69,15 @@ }, read(id) { let _ts = this; - this.$axios.$put('/api/notification/read/' + id).then(function (res) { + this.$axios.$put('/api/notification/read/' + id).then(function () { _ts.currentChange(1); }).catch(error => console.log(error)); }, onRouter(notification) { - if ('0' === notification.dataType) { - if (notification.hasRead === '0') { - this.read(notification.idNotification); - } - this.$router.push({ - path: '/article/' + notification.dataId - }) + if (notification.hasRead === '0') { + this.read(notification.idNotification); } + window.location.href = notification.dataUrl; } } } diff --git a/components/layouts/mobile/header.vue b/components/layouts/mobile/header.vue index ad08646..434800f 100644 --- a/components/layouts/mobile/header.vue +++ b/components/layouts/mobile/header.vue @@ -1,25 +1,12 @@