diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 5aa4f4af..9cf5f2d2 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -251,6 +251,11 @@ export default { }; this.checkFs(); }, + beforeDestroy() { + window.removeEventListener('online', this.checkConn); + window.removeEventListener('offline', this.checkConn); + window.removeEventListener('resize', this.checkFs); + }, watch: { $route() { this.$q.loading.setDefaults({