reloading now return to the correct page instead of home

This commit is contained in:
Gauthier Roebroeck 2019-12-10 18:19:38 +08:00
parent 3d69ed003b
commit 876c79908e

View file

@ -17,7 +17,7 @@ export default Vue.extend({
try {
await this.$store.dispatch('getMe')
await this.$store.dispatch('getLibraries')
this.$router.push({ name: 'home' })
this.$router.back()
} catch (e) {
this.$router.push({ name: 'login' })
}