From 5be73a216d6f8bd0626a8b37943097dbc4198452 Mon Sep 17 00:00:00 2001 From: Milos Stojanovic Date: Sun, 17 May 2020 17:29:10 +0200 Subject: [PATCH] catch NavigationDuplicated errors --- frontend/main.js | 2 +- frontend/views/Login.vue | 4 ++-- frontend/views/partials/Menu.vue | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/main.js b/frontend/main.js index 293051c..7fb51d9 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -45,7 +45,7 @@ new Vue({ .then((user) => { this.$store.commit('initialize') this.$store.commit('setUser', user) - this.$router.push('/') + this.$router.push('/').catch(() => {}) }) .catch(() => { this.$notification.open({ diff --git a/frontend/views/Login.vue b/frontend/views/Login.vue index 01bf51e..bc79b5d 100644 --- a/frontend/views/Login.vue +++ b/frontend/views/Login.vue @@ -1,6 +1,6 @@