This commit is contained in:
Milos Stojanovic 2020-02-27 09:20:46 +01:00
parent fd2d3d2f92
commit 165093b9c5
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ export default {
.catch(error => this.handleError(error))
},
goTo(path) {
this.$router.push({ name: 'browser', query: { 'cd': path }})
this.$router.push({ name: 'browser', query: { 'cd': path }}).catch(() => {})
},
getSelected() {
return _.reduce(this.checked, function(result, value) {

View File

@ -58,7 +58,7 @@ export default {
api.getUser()
.then(user => {
this.$store.commit('setUser', user)
this.$router.push('/login')
this.$router.push('/')
})
.catch(() => {
this.$store.commit('initialize')