From f19a571b4cead8a909fdd517408fbab9e31eaeb9 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Sun, 22 Aug 2021 15:39:03 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B6=88=E6=81=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=98=BE=E7=A4=BA=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/business/components/notice/Notification.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/notice/Notification.vue b/frontend/src/business/components/notice/Notification.vue index a6bce42d02..63b1e3346b 100644 --- a/frontend/src/business/components/notice/Notification.vue +++ b/frontend/src/business/components/notice/Notification.vue @@ -150,8 +150,11 @@ export default { showNotification() { this.result = this.$post('/notification/list/all/' + 1 + '/' + 10, {}, response => { let data = response.data.listObject; - + let now = new Date().getTime(); data.filter(d => d.status === 'UNREAD').forEach(d => { + if (now - d.createTime > 10 * 1000) { + return; + } let title = d.type === 'MENTIONED_ME' ? '@提到我的' : '系统通知'; setTimeout(() => { this.$notify({