1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-17 18:32:35 +00:00

fixed bug where content of the previous page would show after refresh

This commit is contained in:
Bram Wiepjes 2019-08-26 21:01:46 +02:00
parent 8fcfbd957b
commit f5fbecc77f
3 changed files with 4 additions and 4 deletions
web-frontend
layouts
pages/login

View file

@ -80,7 +80,6 @@ import Notifications from '@/components/notifications/Notifications'
import GroupsContext from '@/components/group/GroupsContext'
export default {
layout: 'default',
middleware: 'authenticated',
components: {
GroupsContext,
@ -96,7 +95,7 @@ export default {
methods: {
logoff() {
this.$store.dispatch('auth/logoff')
this.$nuxt.$router.replace({ name: 'login' })
this.$nuxt.$router.push({ name: 'login' })
},
...mapActions({
toggleCollapsed: 'sidebar/toggleCollapsed'

View file

@ -103,7 +103,8 @@ export default {
password: this.credentials.password
})
.then(() => {
this.$nuxt.$router.replace({ name: 'app' })
console.log(this.$nuxt)
this.$nuxt.$router.push({ name: 'app' })
})
.catch(error => {
// If the status code is 400 the provided email or password is incorrect.

View file

@ -144,7 +144,7 @@ export default {
password: this.account.password
})
.then(() => {
this.$nuxt.$router.replace({ name: 'app' })
this.$nuxt.$router.push({ name: 'app' })
})
.catch(error => {
this.error = error.responseError