Update packages/client/src/components/notification.vue

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
tamaina 2021-11-22 21:09:49 +09:00 committed by GitHub
parent b299618191
commit 874d798b55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,8 +122,8 @@ export default defineComponent({
connection.on('readAllNotifications', () => readObserver.disconnect()); connection.on('readAllNotifications', () => readObserver.disconnect());
onUnmounted(() => { onUnmounted(() => {
if (readObserver) readObserver.disconnect(); readObserver.disconnect();
if (connection) connection.dispose(); connection.dispose();
}); });
} }
}); });