From be247dc1d181b81a01808db7b3b263c973d1dd21 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 22 Nov 2021 16:24:12 +0900 Subject: [PATCH] disconnect2 --- packages/client/src/components/notification.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/notification.vue b/packages/client/src/components/notification.vue index dbd6b61c2b..57b9f16afd 100644 --- a/packages/client/src/components/notification.vue +++ b/packages/client/src/components/notification.vue @@ -119,7 +119,7 @@ export default defineComponent({ readObserver.observe(elRef.value); const connection = os.stream.useChannel('main'); - connection.on('readAllNotifications', () => readObserver.unobserve(elRef.value)); + connection.on('readAllNotifications', () => readObserver.disconnect()); watch(props.notification.isRead, () => { readObserver.unobserve(elRef.value);