fixed error modal not closing on browser's back button

This commit is contained in:
axolotle 2021-02-11 16:28:27 +01:00
parent bdde8b39c0
commit 9a795b4df8

View file

@ -28,6 +28,9 @@ const router = new VueRouter({
})
router.beforeEach((to, from, next) => {
if (store.getters.error) {
store.dispatch('DELETE_ERROR')
}
// Allow if connected or route is not protected
if (store.getters.connected || to.meta.noAuth) {
next()