From 1cf16deb61761a57485db10808d27e0180158b95 Mon Sep 17 00:00:00 2001 From: Milos Stojanovic Date: Mon, 24 Jun 2019 13:00:36 +0200 Subject: [PATCH] reset cwd after login --- frontend/views/Login.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/views/Login.vue b/frontend/views/Login.vue index 877f91e..c4982bc 100644 --- a/frontend/views/Login.vue +++ b/frontend/views/Login.vue @@ -58,7 +58,9 @@ export default { }) .then(user => { this.$store.commit('setUser', user) - this.$router.push('/') + api.changeDir({ + to: '/' + }).then(() => this.$router.push('/')) }) .catch(error => { if (error.response && error.response.data) {