Fix bad redirects after Register/Login submit

This commit is contained in:
Bubka 2020-12-03 00:07:32 +01:00
parent cff545d936
commit 835926760a
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
localStorage.setItem('jwt',response.data.message.token)
if (localStorage.getItem('jwt') != null){
this.$router.go('/');
this.$router.push({ name: 'accounts', params: { toRefresh: true } })
}
})
.catch(error => {

View File

@ -37,7 +37,7 @@
localStorage.setItem('jwt',response.data.message.token)
if (localStorage.getItem('jwt') != null){
this.$router.go('/');
this.$router.push({ name: 'accounts', params: { toRefresh: true } })
}
})
.catch(error => {