disconnect2
This commit is contained in:
parent
d4e0669724
commit
be247dc1d1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue