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)) .catch(error => this.handleError(error))
}, },
goTo(path) { goTo(path) {
this.$router.push({ name: 'browser', query: { 'cd': path }}) this.$router.push({ name: 'browser', query: { 'cd': path }}).catch(() => {})
}, },
getSelected() { getSelected() {
return _.reduce(this.checked, function(result, value) { return _.reduce(this.checked, function(result, value) {

View File

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