bugfix login from redirect (#333)

pull/3759/head
Leonel Matos 2020-02-16 00:04:43 -04:00 committed by GitHub
parent 1a3d50424f
commit f700b0341e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -123,7 +123,7 @@ export default {
},
async logout() {
await this.$store.dispatch('user/logout')
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
this.$router.push({ path: '/login', query: { redirect: this.$route.fullPath }})
},
handleClick() {
this.$router.push({ name: 'Profile' })

View File

@ -169,7 +169,7 @@ const actions = {
root: true
})
// dispatch('tagsView/delAllViews', null, { root:true })
dispatch('tagsView/delAllViews', null, { root: true })
removeToken()
removeCurrentRole()
resetRouter()

View File

@ -134,7 +134,7 @@ export default {
watch: {
$route: {
handler: function(route) {
this.redirect = route.query && route.query.redirect
this.redirect = route.query.redirect
},
immediate: true
}