reset cwd after login

This commit is contained in:
Milos Stojanovic
2019-06-24 13:00:36 +02:00
parent f4d4b50441
commit 1cf16deb61

View File

@@ -58,7 +58,9 @@ export default {
}) })
.then(user => { .then(user => {
this.$store.commit('setUser', user) this.$store.commit('setUser', user)
this.$router.push('/') api.changeDir({
to: '/'
}).then(() => this.$router.push('/'))
}) })
.catch(error => { .catch(error => {
if (error.response && error.response.data) { if (error.response && error.response.data) {