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

This commit is contained in:
advplyr 2022-07-07 17:25:52 -05:00
parent 916b41d587
commit bca2cfda13
2 changed files with 6 additions and 9 deletions

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)
}