Fix login redirect (#1736)
This commit is contained in:
parent
0b91cfadf9
commit
42ff6fe600
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue