From 1800a03e4ce7afd9394dc01b8122f37ed3b5132e Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 4 Nov 2021 14:18:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20--bug=3D1007703=20--user=3D=E5=88=98?= =?UTF-8?q?=E7=91=9E=E6=96=8C=20=E3=80=90=E6=8E=A5=E5=8F=A3=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E3=80=91=E5=9C=BA=E6=99=AF=E6=89=B9=E9=87=8F=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E5=90=8E=E7=AB=99=E5=86=85=E4=BF=A1=E6=94=B6=E5=88=B0?= =?UTF-8?q?=E4=BA=862=E6=AC=A1=20https://www.tapd.cn/55049933/s/1064052?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/business/components/notice/Notification.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/notice/Notification.vue b/frontend/src/business/components/notice/Notification.vue index b85ea54c2b..3301ea3f8a 100644 --- a/frontend/src/business/components/notice/Notification.vue +++ b/frontend/src/business/components/notice/Notification.vue @@ -10,7 +10,7 @@ -
+
@@ -78,6 +78,7 @@ export default { goPage: 1, totalPage: 0, totalCount: 0, + noticeShow: false, }; }, props: { @@ -151,6 +152,7 @@ export default { }, readAll() { this.$get('/notification/read/all'); + this.noticeShow = false; }, getNotifications() { this.initWebSocket(); @@ -172,6 +174,9 @@ export default { type: 'info', message: message, }); + // 弹出之后标记成已读 + this.$get('/notification/read/' + d.id); + this.noticeShow = true; }); }); });