mirror of
https://github.com/amir20/dozzle.git
synced 2026-01-03 03:27:29 +01:00
Adds close
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template lang="html">
|
||||
<ul ref="events" class="events"></ul>
|
||||
<ul ref="events" class="events"></ul>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -45,6 +45,10 @@ export default {
|
||||
|
||||
this.$nextTick(() => item.scrollIntoView());
|
||||
};
|
||||
},
|
||||
beforeDestroy() {
|
||||
ws.close();
|
||||
ws = null;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user