Update:Remove log listener for root user & only set when on logger config page

This commit is contained in:
advplyr committed 2022-07-07 17:25:52 -05:00
1 parent 916b41d587
commit bca2cfda13
2 files changed
+6 -9

No files matched your search

+1
View File
@@ -161,6 +161,7 @@ export default {
},
beforeDestroy() {
if (!this.$root.socket) return
this.$root.socket.emit('remove_log_listener')
this.$root.socket.off('daily_logs', this.dailyLogsLoaded)
this.$root.socket.off('log', this.logEvtReceived)
}