mirror of
https://github.com/filegator/filegator.git
synced 2025-08-08 09:16:46 +02:00
reset cwd after login
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user