Fix login redirect (#1736)

This commit is contained in:
Marcos 2022-03-10 13:36:54 +01:00 committed by Marcos Peña
parent 0b91cfadf9
commit 42ff6fe600
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import Vue from 'vue'
import axios from 'axios'
import logger from '@/logging'
import lodash from 'lodash'
import router from '@/router'
function getDefaultScopedTokens () {
return {
@ -141,7 +142,7 @@ export default {
// commit('token', response.data.token)
dispatch('fetchProfile').then(() => {
// Redirect to a specified route
return this.$router.push(next)
return router.push(next)
})
}, response => {
logger.default.error('Error while logging in', response.data)