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
1 changed files with 2 additions and 2 deletions

View File

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